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)
|
amount_of_outputs=$(swaymsg -t get_outputs | grep -i name | wc -l)
|
||||||
|
|
||||||
if [[ "$amount_of_outputs" == "1" ]]; then
|
if [[ "$amount_of_outputs" == "1" ]]; then
|
||||||
|
playerctl pause
|
||||||
__lock
|
__lock
|
||||||
else
|
else
|
||||||
swaymsg output eDP-1 disable
|
swaymsg output eDP-1 disable
|
||||||
|
|||||||
Reference in New Issue
Block a user