Added missing files for media keys
This commit is contained in:
parent
faafbb657b
commit
87f52f757a
2 changed files with 18 additions and 8 deletions
18
Bin/music.sh
Executable file
18
Bin/music.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#! /bin/bash
|
||||
|
||||
service=""
|
||||
spotifyIsUp=`pidof spotify`
|
||||
rhythmboxIsUp=`pidof rhythmbox`
|
||||
|
||||
if [ "${spotifyIsUp}" ]; then
|
||||
echo "Spotify is up!"
|
||||
service="spotify"
|
||||
elif [ "${rhythmboxIsUp}" ]; then
|
||||
echo "Rhythmbox is up!"
|
||||
service="rhythmbox"
|
||||
else
|
||||
echo "All down…"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
qdbus org.mpris.MediaPlayer2.${service} /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.$1
|
|
@ -241,14 +241,6 @@ bindsym XF86MonBrightnessUp exec --no-startup-id ~/Bin/brightness.sh up
|
|||
bindsym XF86AudioPlay exec ~/Bin/music.sh PlayPause
|
||||
bindsym XF86AudioPrev exec ~/Bin/music.sh Previous
|
||||
bindsym XF86AudioNext exec ~/Bin/music.sh Next
|
||||
# Spotify
|
||||
#bindsym XF86AudioPlay exec qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
||||
#bindsym XF86AudioPrev exec qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
||||
#bindsym XF86AudioNext exec qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
||||
# Rhythmbox
|
||||
#bindsym XF86AudioPlay exec qdbus org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
||||
#bindsym XF86AudioPrev exec qdbus org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
||||
#bindsym XF86AudioNext exec qdbus org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
||||
|
||||
# Take Screenshot
|
||||
bindsym Print exec ~/Bin/screenshooter.sh
|
||||
|
|
Loading…
Reference in a new issue