config: sway QoL
This commit is contained in:
parent
7818a89560
commit
214b74dbde
4 changed files with 107 additions and 23 deletions
12
.config/sway/config.d/10-style.config
Normal file
12
.config/sway/config.d/10-style.config
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# Gaps:
|
||||
#
|
||||
gaps inner 8
|
||||
smart_gaps on
|
||||
|
||||
#
|
||||
# Window decorations:
|
||||
#
|
||||
default_border pixel 2
|
||||
hide_edge_borders smart
|
||||
|
41
.config/sway/config.d/20-keybinds.config
Normal file
41
.config/sway/config.d/20-keybinds.config
Normal file
|
@ -0,0 +1,41 @@
|
|||
set $locker ~/.dotfiles/bin/lock.sh
|
||||
|
||||
# Notifications:
|
||||
bindsym ctrl+space exec makoctl dismiss
|
||||
bindsym ctrl+shift+space exec makoctl dismiss --all
|
||||
|
||||
# Screenshot
|
||||
bindsym alt+shift+4 exec ~/.dotfiles/bin/screenshot.sh
|
||||
|
||||
# Multimedia Keys
|
||||
# Requires: playerctl
|
||||
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+
|
||||
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-
|
||||
bindsym XF86AudioMute exec amixer sset Master toggle
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Screen brightness
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
|
||||
# Lock
|
||||
bindsym $mod+l exec $locker
|
||||
|
||||
# Sticky windows
|
||||
bindsym $mod+j sticky toggle
|
||||
|
||||
# System menu
|
||||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id $locker, mode "default"
|
||||
bindsym e exec --no-startup-id swaymsg exit, mode "default"
|
||||
bindsym s exec --no-startup-id $locker && systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id $locker && systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+F12 mode "$mode_system"
|
Loading…
Add table
Add a link
Reference in a new issue