[sxhkd] Move media control mode to sxhkd from i3wm

Most modes should reside in sxhkd, to unify the 'hotkey' settings of the
configuration, and since controlling playback has little to do with the
window manager.
This commit is contained in:
Marty Oehme 2020-05-26 10:33:32 +02:00
parent 68de6bbbd8
commit 42379b25eb
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 45 additions and 60 deletions

View file

@ -1,28 +1,8 @@
# universal x key bindings
# Open terminal emulator (TODO find way to not hard-code alacritty, perhaps ENV vars)
super + Return
exec alacritty
# open quick start menu
super + space
exec rofi -show drun -theme themes/dmenu
# open more extensive run menu
super + r
exec rofi -modi combi,ssh,calc -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown
# open gopass frontend menu
super + p
exec rofi-gopass -theme themes/dropdown
# open surfraw rofi frontend
super + q
exec rofi-surfraw
# System functionality
# Enable lock screen (TODO does not stop music, etc yet
# Enable lock screen (TODO does not stop music, etc yet)
super + x
lockscreen
@ -35,15 +15,48 @@ super + F8
styler set $(styler list themes | rofi -dmenu -theme /themes/dropdown -matching fuzzy)
# enable function (/media) key functionality
# TODO: set up next song, previous song, pause, etc
# see: https://www.reddit.com/r/i3wm/comments/3a6nh3/help_how_to_use_function_keys_in_i3_config/
XF86MonBrightnessUp
exec `xbacklight -inc 10`
XF86MonBrightnessDown
exec `xbacklight -dec 10`
XF86MonBrightness{Up,Down}
xbacklight {-inc,-dec} 10
XF86AudioMute
exec `pulsemixer --toggle-mute`
XF86AudioRaiseVolume
exec `pulsemixer --change-volume +5`
XF86AudioLowerVolume
exec `pulsemixer --change-volume -5`
pulsemixer --toggle-mute
XF86Audio{RaiseVolume,LowerVolume}
pulsemixer --change-volume {-5,+5}
# Open terminal emulator (TODO find way to not hard-code alacritty, perhaps ENV vars)
super + Return
alacritty
# open quick start menu
super + space
rofi -show drun -theme themes/dmenu
# open more extensive run menu
super + r
rofi -modi combi,ssh,calc -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown
# open gopass frontend menu
super + p
rofi-gopass -theme themes/dropdown
# open surfraw rofi frontend
super + q
rofi-surfraw
## modes
# media control mode
# seek +/- 5 seconds
super + alt + m : {h,l}
playerctl position {5-,5+}
# seek +/- 15 seconds
super + alt + m : shift + {h,l}
playerctl position {15-,15+}
# decrease/increase volume
super + alt + m : {j,k}
pulsemixer --change-volume {-5,+5}
# decrease/increase volume
super + alt + m : shift + {j,k}
playerctl {next,previous}
# pause/stop player
super + alt + m : {_,shift} + p
playerctl {play-pause,stop}