mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-14 12:14:20 +02:00
xss-lock: use playerctl to pause music player
This commit is contained in:
parent
7a6a4533b9
commit
9f68632f4c
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ case "$1" in
|
|||
lock)
|
||||
# Something may have mendled with screensaver settings
|
||||
configure
|
||||
# First, stop any music player
|
||||
xdotool key --clearmodifiers XF86AudioStop
|
||||
# First, pause any music player
|
||||
playerctl -a pause
|
||||
# Then, lock screen
|
||||
echo "lock: lock screen"
|
||||
systemctl --user stop compton@${display}.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue