1
0

Adds spotify dbus support

This commit is contained in:
2021-09-16 12:03:53 +02:00
parent f8aecb3ccd
commit 5717465ae3
+5 -1
View File
@@ -20,7 +20,6 @@ include input
set $launcher ulauncher set $launcher ulauncher
floating_modifier Mod1 floating_modifier Mod1
# Window settings and layout # Window settings and layout
@@ -97,6 +96,11 @@ bindsym Ctrl+Print exec grim -g "$(slurp)" ~/screenshot.png
bindsym Shift+Ctrl+Print exec grim ~/screenshot.png bindsym Shift+Ctrl+Print exec grim ~/screenshot.png
bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f - bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f -
# Spotify control
bindsym $mod+Ctrl+$right exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+Ctrl+$left exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+Ctrl+space exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
# Moving around # Moving around
bindsym $mod+$left focus left bindsym $mod+$left focus left
bindsym $mod+$down focus down bindsym $mod+$down focus down