mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +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
|
wait
|
||||||
;;
|
;;
|
||||||
lock)
|
lock)
|
||||||
# First, stop Spotify
|
# First, stop any music player
|
||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
|
xdotool key XF86AudioStop
|
||||||
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause
|
|
||||||
# Then, lock screen
|
# Then, lock screen
|
||||||
i3lock_options="-e -i $HOME/.cache/awesome/current-wallpaper.png -t"
|
i3lock_options="-e -i $HOME/.cache/awesome/current-wallpaper.png -t"
|
||||||
echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
|
echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue