Merge pull request #86 from bitterhalt/main

* Remove resize mode in favor of using a direct binding for each resize action
* Code cleanup, remove unnecessary spaces
This commit is contained in:
BluishHumility
2024-09-24 21:20:22 +00:00
committed by GitHub

View File

@@ -156,26 +156,17 @@ set $lock swaylock -C ~/.config/swaylock/config
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# Resize with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Resize with Vim keys
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
#
# Resizing containers:
bindsym $mod+ctrl+Right resize shrink width 10 px
bindsym $mod+ctrl+Up resize grow height 10 px
bindsym $mod+ctrl+Down resize shrink height 10 px
bindsym $mod+ctrl+Left resize grow width 10 px
# Same but vim keys
bindsym $mod+ctrl+l resize shrink width 10 px
bindsym $mod+ctrl+k resize grow height 10 px
bindsym $mod+ctrl+j resize shrink height 10 px
bindsym $mod+ctrl+h resize grow width 10 px
# Resize floating windows with mouse scroll:
bindsym --whole-window --border {