Browse Source

Only pause if playing

The API is a bit misleading (and PlayPause is not implemented)
Alois Mahdal 7 years ago
parent
commit
16c15f0c56
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dotfiles/config/bmo/hook.ini

+ 1
- 1
dotfiles/config/bmo/hook.ini View File

@@ -18,6 +18,6 @@
18 18
     say_zleeping = weechat-fifo -s \*/disconnect -all offline
19 19
 
20 20
     afk          = pidof mocp       && mocp --pause
21
-    afk          = pidof clementine && qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause
21
+    afk          = pidof clementine && qdbus org.mpris.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus | grep -qxF Playing && qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause
22 22
 
23 23
     back         = bmo nag -R