Add playback control keybindings

This commit is contained in:
Tommy Harris 2020-12-31 13:37:55 -07:00
parent 1e4186dca2
commit 627728339b
Signed by: tobraha
GPG Key ID: 93769A4F97AE33E9
1 changed files with 16 additions and 0 deletions

View File

@ -147,6 +147,22 @@ super + {Left,Down,Up,Right}
# Audio Controls
#
# playback controls
XF86AudioPrev
dbus-send --print-reply \
--dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
XF86AudioNext
dbus-send --print-reply \
--dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
XF86AudioPlay
dbus-send --print-reply \
--dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
# volume control - Dell Soundbar
XF86AudioLowerVolume
pactl set-sink-volume 1 -5%