bin: add sway_resize
This commit is contained in:
parent
36f1a3557c
commit
f3829160db
3 changed files with 95 additions and 13 deletions
32
config
32
config
|
@ -25,6 +25,7 @@ set $idle_cmd $HOME/.config/sway/bin/start_swayidle.sh
|
|||
set $sov_cmd $HOME/.config/sway/bin/start_sov.sh
|
||||
set $lock_cmd $HOME/.config/sway/bin/sway_lock lock
|
||||
set $move_cmd $HOME/.config/sway/bin/sway_move
|
||||
set $resize_cmd $HOME/.config/sway/bin/sway_resize
|
||||
set $font Cascadia Code PL Regular 10
|
||||
set $notify_cmd dunstify -r 123
|
||||
|
||||
|
@ -292,16 +293,25 @@ mode "move" {
|
|||
# resize presets
|
||||
# bindsym -1 resize set width 600px height 360px
|
||||
# bindsym 0 resize set width 700px height 420px
|
||||
bindsym 1 resize set width 800px height 480px
|
||||
bindsym 2 resize set width 900px height 540px
|
||||
bindsym 3 resize set width 1000px height 600px
|
||||
bindsym 4 resize set width 1100px height 660px
|
||||
bindsym 5 resize set width 1200px height 720px
|
||||
bindsym 6 resize set width 1300px height 780px
|
||||
bindsym 7 resize set width 1400px height 840px
|
||||
bindsym 8 resize set width 1500px height 900px
|
||||
bindsym 9 resize set width 1600px height 1040px
|
||||
bindsym 0 resize set width 1700px height 1200px
|
||||
# bindsym 1 resize set width 800px height 480px
|
||||
# bindsym 2 resize set width 900px height 540px
|
||||
# bindsym 3 resize set width 1000px height 600px
|
||||
# bindsym 4 resize set width 1100px height 660px
|
||||
# bindsym 5 resize set width 1200px height 720px
|
||||
# bindsym 6 resize set width 1300px height 780px
|
||||
# bindsym 7 resize set width 1400px height 840px
|
||||
# bindsym 8 resize set width 1500px height 900px
|
||||
# bindsym 9 resize set width 1600px height 1040px
|
||||
# bindsym 0 resize set width 1700px height 1200px
|
||||
bindsym 1 exec $resize_cmd 10
|
||||
bindsym 2 exec $resize_cmd 20
|
||||
bindsym 3 exec $resize_cmd 30
|
||||
bindsym 4 exec $resize_cmd 40
|
||||
bindsym 5 exec $resize_cmd 50
|
||||
bindsym 6 exec $resize_cmd 60
|
||||
bindsym 7 exec $resize_cmd 70
|
||||
bindsym 8 exec $resize_cmd 80
|
||||
bindsym 9 exec $resize_cmd 90
|
||||
# focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
|
@ -350,6 +360,7 @@ for_window [app_id="pavucontrol"] floating enable
|
|||
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
|
||||
for_window [app_id="imv"] floating enable
|
||||
for_window [app_id="nm-openconnect-auth-dialog"] floating enable
|
||||
for_window [app_id="com.obsproject.Studio"] floating enable
|
||||
for_window [app_id=".*"] title_format '<span font_weight="bold">%title</span> <span>(%app_id)</span>'
|
||||
for_window [class=".*"] title_format '<span font_weight="bold">%title</span> <span>(%class:%instance)</span>'
|
||||
# different dashes!
|
||||
|
@ -360,6 +371,7 @@ for_window [title="bluetoothctl"] floating enable
|
|||
for_window [title="fzf"] floating enable
|
||||
# mark rules
|
||||
for_window [class="Plexamp" window_type="normal"] mark s
|
||||
for_window [app_id="com.obsproject.Studio"] mark d
|
||||
for_window [class="Ferdium" window_type="normal" window_role="browser-window"] mark z
|
||||
for_window [class="Signal" window_type="normal" window_role="browser-window"] mark x
|
||||
for_window [class="Chromium" instance="crx_cifhbcnohmdccbgoicgdjpfamggdegmo" window_type="normal"] mark c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue