sway: bind mod+scroll to switch workspaces

This commit is contained in:
lelgenio 2021-10-22 20:35:29 -03:00
parent 6cf627c123
commit ff2e358aa5
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ bindsym --to-code {
# button8,9 = Mouse next/prev button
# Prior,Next = PageUp/Down
{%@@ for targ, buttons in {
"prev_on_output": [ key.tabL, "bracketleft", "Prior", "button9", ],
"next_on_output": [ key.tabR, "bracketright", "Next", "button8", ],
"prev_on_output": [ key.tabL, "bracketleft", "Prior", "button9", "button4", ],
"next_on_output": [ key.tabR, "bracketright", "Next", "button8", "button5", ],
}.items() @@%}
{%@@ for button in buttons @@%}
{%@@ set pref = ("--whole-window " if "button" in button) @@%}