♻️ refactor: split switch_layout into next_layout and previous_layout functions

- Add next_layout() to cycle forward through layouts
- Add previous_layout() to cycle backward through layouts
- Keep switch_layout() as backward-compatible alias to next_layout()
- Update config.conf with example keybinds for both new functions
This commit is contained in:
Eslam Mohamed Abdelghany 2026-03-02 15:01:57 +02:00
parent ad754167b7
commit caa8b05f38
4 changed files with 41 additions and 10 deletions

View file

@ -183,7 +183,8 @@ bind=ALT,e,set_proportion,1.0
bind=ALT,x,switch_proportion_preset,
# switch layout
bind=SUPER,n,switch_layout
bind=SUPER,n,next_layout
bind=SUPER+SHIFT,n,previous_layout
# tag switch
bind=SUPER,Left,viewtoleft,0