From 7ead02512076b27a4bd72633f61e8d0029df5760 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 7 Dec 2020 19:05:34 +0100 Subject: sway: use centercon for some positioning/resizing --- .config/sway/binds.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.config/sway/binds.conf') 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" -- cgit 1.4.1