Last active
June 5, 2020 05:59
-
-
Save wooyey/10cc7c671ce1856da5df838b511ab6af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pulse Audio controls | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
# Media player controls | |
bindsym XF86AudioPlay exec playerctl play-pause | |
bindsym XF86AudioNext exec playerctl next | |
bindsym XF86AudioPrev exec playerctl previous | |
# Reboot/Shutdown, etc. menu | |
set $Locker i3lock && sleep 1 | |
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 i3-msg 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" | |
# back to normal: Enter or Escape | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+Pause mode "$mode_system" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment