diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-07 19:05:34 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-12-07 19:28:05 +0100 |
| commit | 7ead02512076b27a4bd72633f61e8d0029df5760 (patch) | |
| tree | ac2be5966b122074f0ffcce72cae69dbab1a3c63 /.config/sway/binds.conf | |
| parent | 940eb7715c8ad113ff345e30d56438c2487421a3 (diff) | |
sway: use centercon for some positioning/resizing
Diffstat (limited to '')
| -rw-r--r-- | .config/sway/binds.conf | 10 |
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" |