[i34wm] WORKAROUND for handling FireFox windows by i3fyra+i3king+i3run #226
Labels
No labels
Arch PKGBUILD
bug
build
commandline
duplicate
enhancement
font
good first issue
help wanted
implemented
is-it-really-a-bug?
necromancy
not-reproducable
question
reproducable
rofi
solved?
stalled
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bud/i3ass#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not a fix, but hopefully a solution for issue #223 |
After fiddling about and being annoyed by LibreWolf disregarding i3king (it's rightful ruler),
I think I found a way to make LibreWolf obey. It's kind of a workaround, or a dirty fix, but the windows are now back in my control.
See my workup of notes and examples below. @TimRegeant @budRich please try and let me know if it works for you as well.
Firefox workaround | ----------------------------------Workaround for applications based on Firefox codebase such as Thunderbird and forks (e.g. LibreWolf)
i3king's default behaviour is to set the title_format to $INSTANCE (unless you have also set additional GLOBAL or DEFAULT rules). However, the TITLE rule will also 'always execute the command
title_format $TITLE(see i3king manpage).Using a single TITLE rule will result in undesirable and/or inconsistent window properties for i3king to match. This makes it so that with only a single rule entry, i3king will only be able to EITHER rename a window's properties according to matching rules OR invoke i3fyra to move and assign the window to one of the ABCD containers.
Therefore, two rule entries are required in the i3king config (rules) file to:
exec --no-startup-id i3fyra --conid $CONID --move A|B|C|D) to move this window to the desired i3fyra container.The above workaround does the job. It is fully compatible with i3run and i3fyra behaviour (hiding/showing/summoning/(re)focusing the configured windows and containers), whether or not they are invoked from command line or via i3wm config keybindings (assuming correct configuration).
Inevitably, this workaround also has it's limitations. Given the information above I can conclude that this workaround will only work for windows that spawn with at least one different values for the 'class' and 'instance' and 'title_format' properties.
Additionally, any child windows the main instance must have at least one value that is different from other (child) windows, in order for i3king to be able to distinguish them and handle them accordingly.
The latter applies to any window property i3king can match it rules to (title , instance, class, role, title_format). Here, 'title' refers to the string value set for WM_NAME by X compositor, as shown when using f.i.
xprop.Lastly, some example cases:
~/.config/i3/config
~/.config/i3king/rules