summary refs log tree commit diff
path: root/.config/sway
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-04-15 15:30:50 +0200
committerRobert Günzler <r@gnzler.io>2022-04-15 15:30:50 +0200
commit4b4e2fc4f3b078af77fb16aa4adc1a901484c178 (patch)
tree5fcf488414bed65d614eafe6acce93a8ea5115ef /.config/sway
parent754d42c26d623d18eaba214d0e5ec85235e2b595 (diff)
sway: update binds.conf
* add some default mappings for unused meta keys
* move centercon mapping from layout to resize mode
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/binds.conf19
1 files 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"
 # }}}