summary refs log tree commit diff
path: root/.config/sway
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-07 19:05:34 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commit7ead02512076b27a4bd72633f61e8d0029df5760 (patch)
treeac2be5966b122074f0ffcce72cae69dbab1a3c63 /.config/sway
parent940eb7715c8ad113ff345e30d56438c2487421a3 (diff)
sway: use centercon for some positioning/resizing
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/binds.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf
index e2e7197..4954de0 100644
--- a/.config/sway/binds.conf
+++ b/.config/sway/binds.conf
@@ -155,11 +155,15 @@ mode "layout" {
     
     # make a sticky container
     bindsym t sticky toggle; mode "default"; exec notify-send "container sticky'd"
-    bindsym Shift+t floating enable; sticky enable; exec centercon 0.3 tr; mode "default"
+    bindsym Shift+t \
+        floating enable; \
+        sticky enable; \
+        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; mode "default"
-    bindsym Shift+c exec centercon 0.5; mode "default"
+    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"