From 4b4e2fc4f3b078af77fb16aa4adc1a901484c178 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 15 Apr 2022 15:30:50 +0200 Subject: sway: update binds.conf * add some default mappings for unused meta keys * move centercon mapping from layout to resize mode --- .config/sway/binds.conf | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf index 700a727..cc1fd0c 100644 --- a/.config/sway/binds.conf +++ b/.config/sway/binds.conf @@ -173,10 +173,6 @@ mode "layout" { exec sh -c 'centercon -w 0.3 tr && swaymsg move left 10px && swaymsg move down 10px && swaymsg focus mode_toggle'; \ mode "default" - # make a centered container - bindsym c exec centercon 1.0; mode "default" - bindsym Shift+c exec centercon -w 0.5; mode "default" - # return to default mode bindsym Return mode "default" bindsym Escape mode "default" @@ -198,6 +194,10 @@ mode "resize" { bindsym Shift+$down resize shrink width $rate; resize shrink height $rate bindsym Shift+$up resize grow width $rate; resize grow height $rate + # make a centered container + bindsym c exec centercon 1.0; mode "default" + bindsym Shift+c exec centercon -w 0.5; mode "default" + # return to default mode bindsym Return mode "default" bindsym Escape mode "default" @@ -259,12 +259,11 @@ bindsym XF86AudioNext exec playerctl -p playerctld next bindsym XF86AudioPrev exec playerctl -p playerctld previous bindsym XF86WakeUp exec true -# switch video mode bindsym XF86Display exec kanshictl reload; output * dpms on -# config bindsym XF86Tools exec true -# keyboard -bindsym XF86Keyboard exec light -S 0 -# bookmarks -bindsym XF86Favorites exec light -S 100 +bindsym XF86Keyboard exec true +bindsym XF86Favorites exec s6-svc -r $HOME/.local/share/s6/wlsunset + +# macro01 +bindcode 0x290 exec notify-send "macro" "1" # }}} -- cgit 1.4.1