style(sway-config): code cleanup, add bindsym blocks

This commit is contained in:
BluishHumility
2024-08-30 12:34:10 -04:00
parent d19078a1b1
commit 350c6f9cd3

View File

@@ -54,27 +54,29 @@ set $lock swaylock -C ~/.config/swaylock/config
# #
# Moving around: # Moving around:
# #
# Change window focus bindsym {
bindsym $mod+Left focus left # Change window focus
bindsym $mod+Down focus down $mod+Left focus left
bindsym $mod+Up focus up $mod+Down focus down
bindsym $mod+Right focus right $mod+Up focus up
# Vim key support $mod+Right focus right
bindsym $mod+$left focus left # Vim key support
bindsym $mod+$down focus down $mod+$left focus left
bindsym $mod+$up focus up $mod+$down focus down
bindsym $mod+$right focus right $mod+$up focus up
$mod+$right focus right
# Move the focused window # Move the focused window
bindsym $mod+Shift+Left move left $mod+Shift+Left move left
bindsym $mod+Shift+Down move down $mod+Shift+Down move down
bindsym $mod+Shift+Up move up $mod+Shift+Up move up
bindsym $mod+Shift+Right move right $mod+Shift+Right move right
# Vim key support # Vim key support
bindsym $mod+Shift+$left move left $mod+Shift+$left move left
bindsym $mod+Shift+$down move down $mod+Shift+$down move down
bindsym $mod+Shift+$up move up $mod+Shift+$up move up
bindsym $mod+Shift+$right move right $mod+Shift+$right move right
}
# #
# Workspaces: # Workspaces:
@@ -95,6 +97,7 @@ set $lock swaylock -C ~/.config/swaylock/config
$mod+17 workspace number 8 $mod+17 workspace number 8
$mod+18 workspace number 9 $mod+18 workspace number 9
$mod+19 workspace number 10 $mod+19 workspace number 10
# Move focused container to workspace # Move focused container to workspace
$mod+Shift+10 move container to workspace number 1 $mod+Shift+10 move container to workspace number 1
$mod+Shift+11 move container to workspace number 2 $mod+Shift+11 move container to workspace number 2
@@ -169,28 +172,33 @@ set $lock swaylock -C ~/.config/swaylock/config
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
# Resize floating windows with mouse scroll: # Resize floating windows with mouse scroll:
bindsym --whole-window --border $mod+button4 resize shrink height 5 px or 5 ppt bindsym --whole-window --border {
bindsym --whole-window --border $mod+button5 resize grow height 5 px or 5 ppt # Resize vertically
bindsym --whole-window --border $mod+Shift+button4 resize shrink width 5 px or 5 ppt $mod+button4 resize shrink height 5 px or 5 ppt
bindsym --whole-window --border $mod+Shift+button5 resize grow width 5 px or 5 ppt $mod+button5 resize grow height 5 px or 5 ppt
# Resize horizontally
$mod+Shift+button4 resize shrink width 5 px or 5 ppt
$mod+Shift+button5 resize grow width 5 px or 5 ppt
}
# #
# Volume # Media Keys
# #
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 bindsym {
bindsym XF86AudioLowerVolume exec pamixer -ud 2 # Volume
bindsym XF86AudioMute exec pamixer --toggle-mute XF86AudioRaiseVolume exec pamixer -ui 2
# XF86AudioLowerVolume exec pamixer -ud 2
# Player XF86AudioMute exec pamixer --toggle-mute
#
bindsym XF86AudioPlay exec playerctl play-pause # Player
bindsym XF86AudioNext exec playerctl next XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPrev exec playerctl previous XF86AudioNext exec playerctl next
# XF86AudioPrev exec playerctl previous
# Backlight
# # Backlight
bindsym XF86MonBrightnessUp exec brightnessctl -c backlight set +5% XF86MonBrightnessUp exec brightnessctl -c backlight set +5%
bindsym XF86MonBrightnessDown exec brightnessctl -c backlight set 5%- XF86MonBrightnessDown exec brightnessctl -c backlight set 5%-
}
# #
# App shortcuts # App shortcuts
# #