mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 19:54:21 +02:00
lock: stop spotify when locking
This commit is contained in:
parent
539f0cd41a
commit
27599fedcc
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue