♻️ 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

@ -26,6 +26,8 @@ int32_t spawn_on_empty(const Arg *arg);
int32_t setkeymode(const Arg *arg);
int32_t switch_keyboard_layout(const Arg *arg);
int32_t setlayout(const Arg *arg);
int32_t next_layout(const Arg *arg);
int32_t previous_layout(const Arg *arg);
int32_t switch_layout(const Arg *arg);
int32_t setmfact(const Arg *arg);
int32_t quit(const Arg *arg);