26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
# switch keyboard input language
|
|
bindsym $mod+tab exec toggle-kbd-layout
|
|
|
|
# Screen capturing
|
|
bindsym $mod+Ctrl+p exec grim -g "$(slurp -d -b \#ffffff11)" ~/Pictures/Screenshots/$(date +%Y%m%d_%Hh%Mm%Ss)_grim.png
|
|
bindsym $mod+Shift+p exec grim -g "$(slurp -d -b \#ffffff11 -o)" ~/Pictures/Screenshots/$(date +%Y%m%d_%Hh%Mm%Ss)_grim.png
|
|
|
|
bindsym $mod+Ctrl+r exec record-screen
|
|
bindsym $mod+Shift+r exec record-screen fullscreen
|
|
|
|
# Launcher
|
|
set $menu exec alacritty --class launcher -e env TERMINAL_COMMAND="alacritty -e" sway-launcher
|
|
bindsym $mod+Space exec $menu
|
|
|
|
# Pulse Audio controls
|
|
bindsym $mod+Ctrl+m exec pavucontrol
|
|
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. up' #increase sound volume
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 && notify-send 'Vol. down' #decrease sound volume
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send 'Mute sound' # mute sound
|
|
|
|
# Media player controls
|
|
bindsym XF86AudioPlay exec "playerctl play-pause; notify-send 'Play/Pause'"
|
|
bindsym XF86AudioNext exec "playerctl next; notify-send 'Next'"
|
|
bindsym XF86AudioPrev exec "playerctl previous; notify-send 'Prev.'"
|