Sophie Hirn 2 months ago
parent
commit
ab720fa8e5
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      .local/bin/lock

+ 4
- 3
.local/bin/lock View File

@@ -3,15 +3,16 @@
beacon stop {%{compositor}%} 2>/dev/null
xset +dpms dpms 5 5 5 s 5

pacmd dump | grep set-sink-mute >"/tmp/$(whoami).lock-sound"

pactl list short sinks | cut -f 1 | while read -r s; do
pacmd set-sink-mute "$s" 1
done

i3lock -n -i "$HOME/wp/curr/all.png"

pactl list short sinks | cut -f 1 | while read -r s; do
pacmd set-sink-mute "$s" 0
done
pacmd <"/tmp/$(whoami).lock-sound"
rm "/tmp/$(whoami).lock-sound"

xset -dpms s off
beacon start {%{compositor}%} {%{compositor}%} {%{compositor-opts}%}

Loading…
Cancel
Save