diff --git a/templates/.config/sway/config b/templates/.config/sway/config index f93533e..7aeda0e 100644 --- a/templates/.config/sway/config +++ b/templates/.config/sway/config @@ -117,6 +117,7 @@ bindsym $mod+Ctrl+$kleft move workspace to output left bindsym $mod+Ctrl+$kdown move workspace to output down bindsym $mod+Ctrl+$kup move workspace to output up bindsym $mod+Ctrl+$kright move workspace to output right +bindsym $mod+q exec wsc bindsym $mod+f fullscreen toggle bindsym $mod+Shift+space floating toggle @@ -160,6 +161,9 @@ bindsym $mod+Ctrl+$kws8 rename workspace to $ws8 bindsym $mod+Ctrl+$kws9 rename workspace to $ws9 bindsym $mod+Ctrl+$kws10 rename workspace to $ws10 +bindsym $mod+y exec wsn +bindsym $mod+Ctrl+y exec wsr + mode "resize" { bindsym $kleft resize shrink width 10 px or 10 ppt bindsym $kdown resize grow height 10 px or 10 ppt diff --git a/templates/bin/wsc b/templates/bin/wsc new file mode 100755 index 0000000..55bad10 --- /dev/null +++ b/templates/bin/wsc @@ -0,0 +1,8 @@ +#!/bin/sh + +FOCUSED="$(swaymsg -t get_outputs --raw | jq '.[] | select(.focused).name')" + +for i in $(seq 1 10) +do + swaymsg "workspace $i; move workspace to output $FOCUSED" +done diff --git a/templates/bin/wsn b/templates/bin/wsn new file mode 100755 index 0000000..a7e33f0 --- /dev/null +++ b/templates/bin/wsn @@ -0,0 +1,6 @@ +#!/bin/sh + +INP="$(wofi --dmenu -H 1 -W 5)" +[ -z "$INP" ] && exit + +swaymsg "workspace \"$INP\"" diff --git a/templates/bin/wsr b/templates/bin/wsr new file mode 100755 index 0000000..77565bf --- /dev/null +++ b/templates/bin/wsr @@ -0,0 +1,6 @@ +#!/bin/sh + +INP="$(wofi --dmenu -H 1 -W 5)" +[ -z "$INP" ] && exit + +swaymsg "rename workspace to \"$INP\""