config: add automatic closing to submaps (#11760)
* Allow submaps to auto reset to parent.
* Really should be a stack instead.
If hyprlang would allow for { } i would be so happy.
* Fixed: Somewhat better way to do it..
Lets you define what submap you want to go to instead.
* squash! Fixed: Somewhat better way to do it..
* God i hate cf..
* Force clang-format on the whole thing..
* Removed {}.
* Added tests
Tests and reset fix.
This commit is contained in:
parent
6a01c399a9
commit
d599513d4a
8 changed files with 102 additions and 26 deletions
|
|
@ -297,6 +297,23 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
|
|||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
bind = $mainMod, u, submap, submap1
|
||||
|
||||
submap = submap1
|
||||
bind = , u, submap, submap2
|
||||
bind = , i, submap, submap3
|
||||
bind = , o, exec, $terminal
|
||||
bind = , p, submap, reset
|
||||
|
||||
submap = submap2, submap1
|
||||
bind = , o, exec, $terminal
|
||||
|
||||
submap = submap3, reset
|
||||
bind = , o, exec, $terminal
|
||||
|
||||
submap = reset
|
||||
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue