style(sway-config): code cleanup
This commit is contained in:
@@ -144,6 +144,7 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
|
|
||||||
# Move focus to the parent container
|
# Move focus to the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
#
|
#
|
||||||
# Scratchpad:
|
# Scratchpad:
|
||||||
#
|
#
|
||||||
@@ -156,17 +157,22 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||||
# If there are multiple scratchpad windows, this command cycles through them.
|
# If there are multiple scratchpad windows, this command cycles through them.
|
||||||
bindsym $mod+minus scratchpad show
|
bindsym $mod+minus scratchpad show
|
||||||
|
|
||||||
#
|
#
|
||||||
# Resizing containers:
|
# Resizing containers:
|
||||||
bindsym $mod+ctrl+Right resize shrink width 10 px
|
#
|
||||||
bindsym $mod+ctrl+Up resize grow height 10 px
|
bindsym {
|
||||||
bindsym $mod+ctrl+Down resize shrink height 10 px
|
# Resize with arrow keys
|
||||||
bindsym $mod+ctrl+Left resize grow width 10 px
|
$mod+ctrl+Right resize shrink width 10 px
|
||||||
# Same but vim keys
|
$mod+ctrl+Up resize grow height 10 px
|
||||||
bindsym $mod+ctrl+l resize shrink width 10 px
|
$mod+ctrl+Down resize shrink height 10 px
|
||||||
bindsym $mod+ctrl+k resize grow height 10 px
|
$mod+ctrl+Left resize grow width 10 px
|
||||||
bindsym $mod+ctrl+j resize shrink height 10 px
|
# Resize with Vim keys
|
||||||
bindsym $mod+ctrl+h resize grow width 10 px
|
$mod+ctrl+l resize shrink width 10 px
|
||||||
|
$mod+ctrl+k resize grow height 10 px
|
||||||
|
$mod+ctrl+j resize shrink height 10 px
|
||||||
|
$mod+ctrl+h resize grow width 10 px
|
||||||
|
}
|
||||||
|
|
||||||
# Resize floating windows with mouse scroll:
|
# Resize floating windows with mouse scroll:
|
||||||
bindsym --whole-window --border {
|
bindsym --whole-window --border {
|
||||||
@@ -196,6 +202,7 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
XF86MonBrightnessUp exec brightnessctl -c backlight set +5%
|
XF86MonBrightnessUp exec brightnessctl -c backlight set +5%
|
||||||
XF86MonBrightnessDown exec brightnessctl -c backlight set 5%-
|
XF86MonBrightnessDown exec brightnessctl -c backlight set 5%-
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# App shortcuts
|
# App shortcuts
|
||||||
#
|
#
|
||||||
@@ -210,6 +217,7 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
# Delete an entry from the clipboard manager
|
# Delete an entry from the clipboard manager
|
||||||
bindsym $mod+Ctrl+x exec cliphist list | fuzzel -d -w 90 -l 30 -t cc9393ff -S cc9393ff -p "Select an entry to delete it from cliphist:"| cliphist delete
|
bindsym $mod+Ctrl+x exec cliphist list | fuzzel -d -w 90 -l 30 -t cc9393ff -S cc9393ff -p "Select an entry to delete it from cliphist:"| cliphist delete
|
||||||
# Note: you can clear all cliphist entries by running `cliphist wipe`
|
# Note: you can clear all cliphist entries by running `cliphist wipe`
|
||||||
|
|
||||||
#
|
#
|
||||||
# Screenshots
|
# Screenshots
|
||||||
#
|
#
|
||||||
@@ -219,3 +227,4 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
bindsym Ctrl+Print exec ~/.config/sway/scripts/screenshot_window.sh
|
bindsym Ctrl+Print exec ~/.config/sway/scripts/screenshot_window.sh
|
||||||
# Screenshot the current display and pipe to swappy
|
# Screenshot the current display and pipe to swappy
|
||||||
bindsym Shift+Print exec ~/.config/sway/scripts/screenshot_display.sh
|
bindsym Shift+Print exec ~/.config/sway/scripts/screenshot_display.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user