[i3king] add option to apply rules for currently running windows #90
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#90
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?
When i3 is restarted all existing windows loses their containers.
This option (
--applymb) would loop through all windows and apply their corresponding rules.I think i see what you mean. But
i3-msg restartis awkward. I just tried it here now on my computer, and I have lots of windows in tabs and on the scratchpad. I expected everything to, you know, get messed up i thought i would see all windows in the same vertically split container or something. but nothing happened. all the windows where left as in place.But one annoying thing is that the marks dissapear, and for me (and maybe you) that means that i3fyra has no idea about the layout. hmm.
There are four ways to tackle this problem:
--applyoption as you suggestI think i will experiment with both 3 and 4, but will always recommend 1. I have a feeling that even if we add 3 and/or 4, a smooth restart will not happen anyways.
Thank you very much for this issue, i am glad you tried the scrip, these kind of issues prove that you really tried it, this is also something i had not thought about at all, and it is good to keep this scenario in mind for future updates.
It is as you say, windows stay in same layout but they lose their marks and new windows apper in weird places.
Sorry for not explaining much.
I don't tipically use
restartbutreloadsimply didn't recover me from mess I've managed to do while migrating to new version ofi3assand updating i3 to4.19.2😋.Unrelated question...
How do you make
i3,i3king,lxde,infooutput go undermonitortabbed container?Is it manual or automatic proces or do you have key binding for that?
I'd love to see debug output like this but I'm not i3 wizzard like you.
I added
--applyoption now to i3king. It will test all windows against the rules (this also means windows on the scratchpad and all workspaces).This is also done automatically when the
restartevent is sent to the IPC (which happens when we restart i3 with f.i.i3-msg-restart). Another thing that happens with restart is that it closes all IPC sockets, meaning that i need to "re-subscribe" to the IPC, this is also done now, by simply restarting i3king. I also added--no-restartoption, in case this behaviour causes issues for someone.Also, the
--applyoption will not start any subscription, it will just test and apply the rules, then exit. So if you want full control, you could have a restart script looking something like this (assuming you started i3king with--no-restartoption):Regarding the question about the monitor tab, lets take it to the discussion forums!
i created a new thread regarding the monitor tab thing: #94