Switching layouts with cycle command
Issue #38
resolved
I want only the following layout: dwindle, tile, grid, none.
I try the following code for switch layout, and “cycle” them:
# change active workspace layout or cycle between them
super + ctrl {1,2,3,4,5}
dkcmd set layout {dwindle,tile,grid,none,cycle} && notify-send -t 500 $(dkcmd status num=1 | grep L | cut -c 2-)
The switch layout with super + ctrl + number works perfectly, but super + ctrl + 5 make layout tile, and not cycling between them.
What is wrong?
Comments (5)
-
repo owner -
repo owner - changed status to open
-
repo owner Never mind, there is indeed an issue with cycle, I’ll get it fixed.
My above point will still be relevant if you only want to cycle a certain set of layouts.
-
repo owner - changed status to resolved
Fix:
#38broken layout cycling→ <<cset 4b24990c74f0>>
-
reporter Thx working fine the custom layout list and the cycle too!
- Log in to comment
cycle
will go through all layouts built in to dk, not the ones you list in the bind. If you want that behaviour then you can remove the other layouts from yourconfig.h
and recompileNote that I also changed the order to match your bind, to keep the original behaviour of
tile
being the default layout, make sure to move it back to the top of the list.