- changed status to open
layout change based on rules
Could it be scripted somehow to change the layout, so that if I open, for example, the 4th window within a workspace, it switches to the grid layout? 1,2,3,5 should you use a tile layout in the case of an open window?
Comments (11)
-
repo owner -
repo owner Yea of course its possible, probably a lot easier to do through a patch to the actual code rather than scripted, either way it’s gonna be kinda hardcoded.
-
repo owner Try out the latest commit and try the layout
dyntile
, you can modify the config.h to adjust values or change the layouts -
works as expected and wow, that is absoluly a setting I didn’t even know I wanted/needed. time to make some new dynamic ws layouts
-
two things, first only appears to sort of work
~ dkcmd set layout dyntile ~ dkcmd set layout tile ~ dkcmd set layout dyntile dkcmd: error: invalid layout argument: dyntile expected string e.g tile
-
repo owner Ahh I’m so dumb lol, I’m updating the layout name in dyntile which causes the search to fail after switching. Added another string to the layout structure so it never changes and is searchable, while the display names can be updated at will.
Another good find thank you
-
You sir are amazing. Thank you for the quick fixes.
-
repo owner I’ve changed the config header again back to the original and come up with a better solution with the latest commit, I just really didn’t like the duplicate strings.
-
reporter Oh my god! It works wonderfully! Amazing feature :) Thx a lot!
-
Genius.
-
repo owner - changed status to resolved
I think this can be called resolved
- Log in to comment