style(sway-config): code cleanup, add bindsym blocks
This commit is contained in:
@@ -54,27 +54,29 @@ set $lock swaylock -C ~/.config/swaylock/config
|
|||||||
#
|
#
|
||||||
# Moving around:
|
# Moving around:
|
||||||
#
|
#
|
||||||
|
bindsym {
|
||||||
# Change window focus
|
# Change window focus
|
||||||
bindsym $mod+Left focus left
|
$mod+Left focus left
|
||||||
bindsym $mod+Down focus down
|
$mod+Down focus down
|
||||||
bindsym $mod+Up focus up
|
$mod+Up focus up
|
||||||
bindsym $mod+Right focus right
|
$mod+Right focus right
|
||||||
# Vim key support
|
# Vim key support
|
||||||
bindsym $mod+$left focus left
|
$mod+$left focus left
|
||||||
bindsym $mod+$down focus down
|
$mod+$down focus down
|
||||||
bindsym $mod+$up focus up
|
$mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
$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
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
# Media Keys
|
||||||
|
#
|
||||||
|
bindsym {
|
||||||
# Volume
|
# Volume
|
||||||
#
|
XF86AudioRaiseVolume exec pamixer -ui 2
|
||||||
bindsym XF86AudioRaiseVolume exec pamixer -ui 2
|
XF86AudioLowerVolume exec pamixer -ud 2
|
||||||
bindsym XF86AudioLowerVolume exec pamixer -ud 2
|
XF86AudioMute exec pamixer --toggle-mute
|
||||||
bindsym XF86AudioMute exec pamixer --toggle-mute
|
|
||||||
#
|
|
||||||
# Player
|
# Player
|
||||||
#
|
XF86AudioPlay exec playerctl play-pause
|
||||||
bindsym XF86AudioPlay exec playerctl play-pause
|
XF86AudioNext exec playerctl next
|
||||||
bindsym XF86AudioNext exec playerctl next
|
XF86AudioPrev exec playerctl previous
|
||||||
bindsym XF86AudioPrev exec playerctl previous
|
|
||||||
#
|
|
||||||
# Backlight
|
# Backlight
|
||||||
#
|
XF86MonBrightnessUp exec brightnessctl -c backlight set +5%
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl -c backlight set +5%
|
XF86MonBrightnessDown exec brightnessctl -c backlight set 5%-
|
||||||
bindsym XF86MonBrightnessDown exec brightnessctl -c backlight set 5%-
|
}
|
||||||
#
|
#
|
||||||
# App shortcuts
|
# App shortcuts
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user