Play/Pause/Next/Previous spotify, remapping mpc

This commit is contained in:
Simon Vieille 2015-10-09 16:57:03 +02:00
parent bc4c8a2e08
commit c3c9027896
1 changed files with 14 additions and 9 deletions

23
config
View File

@ -228,6 +228,7 @@ bar {
}
}
for_window [title="OBS"] floating enable
for_window [title="SimpleScreenRecorder"] floating enable
for_window [title="QuickSynergy"] floating enable
for_window [title="recordMyDesktop"] floating enable
@ -244,7 +245,7 @@ for_window [title="Gnuplot"] floating enable
for_window [title="Network Connect"] floating enable
for_window [title=".*"] border 1pixel
exec utox
#exec utox
exec feh --bg-fill ~/wallpaper.jpg
exec setxkbmap fr oss
exec mpd
@ -258,11 +259,11 @@ exec dunst
exec /home/simon/bin/dual_screen_dp1.sh off
exec /home/simon/bin/reload_wallpaper
exec redshift-gtk -l 47.51659:6.7809
exec pulseaudio --start
exec synclient MiddleButtonAreaRight=3500
exec synclient MiddleButtonAreaLeft=2700
exec synclient MiddleButtonAreaRight=3500
exec synclient MiddleButtonAreaLeft=2700
#exec pulseaudio --start
# exec synclient MiddleButtonAreaRight=3500
# exec synclient MiddleButtonAreaLeft=2700
# exec synclient MiddleButtonAreaRight=3500
# exec synclient MiddleButtonAreaLeft=2700
exec xcompmgr -c
exec xbacklight + 100
@ -281,9 +282,13 @@ bindsym XF86MonBrightnessDown exec xbacklight - 7
bindsym Shift+$mod+h exec xbacklight + 7
bindsym Shift+$mod+n exec xbacklight - 7
bindsym $mod+mod1+n exec mpc next
bindsym $mod+mod1+h exec mpc prev
bindsym $mod+mod1+p exec mpc toggle
bindsym $mod+mod1+shift+n exec mpc next
bindsym $mod+mod1+shift+h exec mpc prev
bindsym $mod+mod1+shift+p exec mpc toggle
bindsym $mod+mod1+n exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+mod1+h exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
bindsym $mod+mod1+p exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86HomePage exec ~/bin/uzbl
bindsym XF86AudioRaiseVolume exec amixer set Master 2%+