Last active
January 25, 2019 00:04
-
-
Save jimpriest/43b117ac39897e3fcceff0fb4bbc1734 to your computer and use it in GitHub Desktop.
i3 config for Code keyboard audio buttons
This file contains hidden or 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
# Audio controls for keyboard | |
# Works on Ubuntu 18.04 LTS | |
# playerctl is not in apt for 18.04? | |
#======================================================== | |
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume | |
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume | |
# Spotify controls | |
# Play/Pause | |
bindsym XF86AudioPlay exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause | |
# Stop | |
bindsym XF86AudioStop exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop | |
# Next song | |
bindsym XF86AudioNext exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next | |
# Previous song | |
bindsym XF86AudioPrev exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment