diff --git a/bin/xss-lock b/bin/xss-lock index a6fb8f4..6a5ccd3 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -21,6 +21,10 @@ case "$1" in wait ;; lock) + # First, stop Spotify + dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \ + /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause + # Then, lock screen i3lock_options="-e -i $HOME/.cache/awesome/current-wallpaper.png" echo "$(date --rfc-3339=seconds) $me: lock: lock screen" if [ -e /proc/self/fd/${XSS_SLEEP_LOCK_FD:--1} ]; then