sway: pause media player before locking screen
This commit is contained in:
@@ -7,6 +7,7 @@ __lock() {
|
||||
amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l)
|
||||
|
||||
if [[ "$amount_of_outputs" == "1" ]]; then
|
||||
playerctl pause
|
||||
__lock
|
||||
else
|
||||
swaymsg output eDP-1 disable
|
||||
|
||||
Reference in New Issue
Block a user