Add a music pause to Win-L
This commit is contained in:
parent
6af7d2b52f
commit
9883bb07a4
1 changed files with 3 additions and 3 deletions
|
@ -165,8 +165,8 @@
|
||||||
bind = $mainMod, R, exec, ranger
|
bind = $mainMod, R, exec, ranger
|
||||||
bind = $mainMod, S, exec, steam
|
bind = $mainMod, S, exec, steam
|
||||||
|
|
||||||
# Lock the screen, send to swaylock
|
# Lock the screen, send to swaylock and pause music
|
||||||
bind = $mainMod, L, exec, swaylock
|
bind = $mainMod, L, exec, swaylock && playerctl pause
|
||||||
|
|
||||||
# Lid closure:
|
# Lid closure:
|
||||||
# trigger when the switch is toggled
|
# trigger when the switch is toggled
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
|
|
||||||
# Set up the idle management daemon
|
# Set up the idle management daemon
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 120 'swaylock -f' \
|
timeout 120 'swaylock -f && playerctl pause' \
|
||||||
timeout 180 'hyprctl dispatch dpms off' \
|
timeout 180 'hyprctl dispatch dpms off' \
|
||||||
timeout 300 'systemctl suspend-then-hibernate' \
|
timeout 300 'systemctl suspend-then-hibernate' \
|
||||||
resume 'hyprctl dispatch dpms on' \
|
resume 'hyprctl dispatch dpms on' \
|
||||||
|
|
Loading…
Reference in a new issue