chezmoi/dot_config/sway/modes.conf
2023-05-18 11:48:04 +02:00

40 lines
1.8 KiB
Plaintext

# RESIZE
set $mode_resize "<span foreground='$light0'></span> \
<span foreground='$light0'><b>Resize</b></span> <span foreground='$bright_green'>(<b>↑ ↓ ← →</b>)</span> \
<span foreground='$light0'><b>Increase Gaps</b></span> <span foreground='$bright_green'>(<b>+</b>)</span> \
<span foreground='$light0'><b>Decrease Gaps</b></span> <span foreground='$bright_green'>(<b>-</b>)</span>"
mode --pango_markup $mode_resize {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width $resizestepsize
$bindsym $down resize grow height $resizestepsize
$bindsym $up resize shrink height $resizestepsize
$bindsym $right resize grow width $resizestepsize
$bindsym $left_alt resize shrink width $resizestepsize
$bindsym $down_alt resize grow height $resizestepsize
$bindsym $up_alt resize shrink height $resizestepsize
$bindsym $right_alt resize grow width $resizestepsize
$bindsym Shift+$left resize shrink width $resizestepsize
$bindsym Shift+$down resize grow height $resizestepsize
$bindsym Shift+$up resize shrink height $resizestepsize
$bindsym Shift+$right resize grow width $resizestepsize
$bindsym Shift+$left_alt resize shrink width $resizestepsize
$bindsym Shift+$down_alt resize grow height $resizestepsize
$bindsym Shift+$up_alt resize shrink height $resizestepsize
$bindsym Shift+$right_alt resize grow width $resizestepsize
## Resize // Window Gaps // + - ##
$bindsym minus gaps inner current minus 5px
$bindsym plus gaps inner current plus 5px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
}