diff options
Diffstat (limited to '.config/sway/binds.conf')
| -rw-r--r-- | .config/sway/binds.conf | 86 |
1 files changed, 47 insertions, 39 deletions
diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf index 6679e57..008a201 100644 --- a/.config/sway/binds.conf +++ b/.config/sway/binds.conf @@ -56,24 +56,6 @@ mode "screengrab" { } # }}} -bindsym $mod+m mode "menu" -# {{{ -mode "menu" { - bindsym a exec soundswitch; mode "default" - bindsym m exec mnts; mode "default" - bindsym n exec notifmenu; mode "default" - bindsym o exec fs; mode "default" - bindsym p exec passmenu; mode "default" - bindsym r exec rcmenu; mode "default" - bindsym x exec menu -drun; mode "default" - - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym q mode "default" -} -# }}} - -# Moving around {{{ # Move your focus around bindsym $mod+$left focus left bindsym $mod+$down focus down @@ -91,7 +73,6 @@ bindsym $mod+Next focus child bindsym $mod+Prior focus parent bindsym $mod+Delete [urgent="latest"] focus -# }}} # Workspaces {{{ # Note: workspaces can have any name you want, not just numbers. @@ -132,24 +113,44 @@ bindsym $mod+Ctrl+$left move workspace to output left bindsym $mod+Ctrl+$down move workspace to output down bindsym $mod+Ctrl+$up move workspace to output up bindsym $mod+Ctrl+$right move workspace to output right + +bindsym $mod+g mode "go" +mode "go" { + bindsym 1 workspace $ws1; mode "default" + bindsym 2 workspace $ws2; mode "default" + bindsym 3 workspace $ws3; mode "default" + bindsym 4 workspace $ws4; mode "default" + bindsym 5 workspace $ws5; mode "default" + bindsym 6 workspace $ws6; mode "default" + bindsym 7 workspace $ws7; mode "default" + bindsym 8 workspace $ws8; mode "default" + bindsym 9 workspace $ws9; mode "default" + bindsym 0 workspace $ws0; mode "default" + + bindsym m workspace $wsMusic; mode "default" + bindsym g workspace $wsGame; mode "default" + bindsym v workspace $wsVideo; mode "default" + + # return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} + # }}} -# Layout stuff {{{ bindsym $mod+Minus splitv bindsym $mod+Equal splith -bindsym $mod+g layout toggle split +bindsym $mod+Shift+y layout toggle split -# Make the current focus fullscreen bindsym $mod+f fullscreen bindsym $mod+Shift+f fullscreen global -# Hide the topbar (also gets you more space) bindsym $mod+Shift+t bar mode toggle topbar; default_border pixel -# Swap focus between the tiling area and the floating area bindsym $mod+space focus mode_toggle -# Toggle the current focus between tiling and floating mode bindsym $mod+Ctrl+space floating toggle +bindsym $mod+y mode "layout" +# {{{ mode "layout" { # Switch the current container between different layout styles bindsym s layout stacking; mode "default" @@ -176,22 +177,13 @@ mode "layout" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+y mode "layout" # }}} -# Scratchpad {{{ -# Sway has a "scratchpad", which is a bag of holding for windows. -# You can send windows there and get them back later. - -# Move the currently focused window to the scratchpad bindsym $mod+Ctrl+backspace move scratchpad - -# Show the next scratchpad window or hide the focused scratchpad window. -# If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+backspace scratchpad show -# }}} -# Resizing containers {{{ +bindsym $mod+r mode "resize" +# {{{ mode "resize" { set $rate 25 bindsym $left resize shrink width $rate @@ -206,10 +198,10 @@ mode "resize" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+r mode "resize" # }}} -# Gaps {{{ +bindsym $mod+Shift+g mode "gaps" +# {{{ mode "gaps" { bindsym r gaps outer all set 0; gaps inner all set 0 @@ -221,7 +213,23 @@ mode "gaps" { bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+Shift+g mode "gaps" +# }}} + +bindsym $mod+m mode "menu" +# {{{ +mode "menu" { + bindsym a exec soundswitch; mode "default" + bindsym m exec mnts; mode "default" + bindsym n exec notifmenu; mode "default" + bindsym o exec fs; mode "default" + bindsym p exec passmenu; mode "default" + bindsym r exec rcmenu; mode "default" + bindsym x exec menu -drun; mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym q mode "default" +} # }}} # Misc {{{ |