mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
lock: more generic way to stop an audio player
This commit is contained in:
parent
93a5cf16ba
commit
86c36c91c6
1 changed files with 2 additions and 3 deletions
|
@ -21,9 +21,8 @@ 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
|
||||
# First, stop any music player
|
||||
xdotool key XF86AudioStop
|
||||
# Then, lock screen
|
||||
i3lock_options="-e -i $HOME/.cache/awesome/current-wallpaper.png -t"
|
||||
echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue