[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

@ -173,35 +173,7 @@ mode "resize" {
}
set $mode_media "Media"
mode $mode_media {
# Pressing left will move 5s back
bindsym h exec playerctl position 5-
bindsym Shift+h exec playerctl position 15-
# Pressing down will move to the next file
bindsym j exec playerctl next
# Pressing up will move to the previous file
bindsym k exec playerctl previous
# Pressing right will move 5s forward
bindsym l exec playerctl position 5+
bindsym Shift+l exec playerctl position 30+
# Pressing p will play/pause current track
bindsym p exec playerctl play-pause
# Pressing p will play/pause current track
bindsym s exec playerctl stop
#TODO add option to open file, loop, shuffle, show/select players
# back to normal
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $modemod+m mode "default"
}
bindsym $modemod+r mode "resize"
bindsym $modemod+m mode $mode_media
# reload the configuration file
bindsym $mod+F12 reload