diff options
Diffstat (limited to '.local/share/bin/panic')
-rwxr-xr-x | .local/share/bin/panic | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/.local/share/bin/panic b/.local/share/bin/panic index e2451a6..1fa978b 100755 --- a/.local/share/bin/panic +++ b/.local/share/bin/panic @@ -1,5 +1,19 @@ #!/bin/sh -i3-msg focus output primary > /dev/null -i3-msg workspace 'panic1' > /dev/null -i3-msg focus output right > /dev/null -i3-msg workspace 'panic2' > /dev/null +silent() { + "$@" 1>/dev/null 2> /dev/null & +} + +# clear desktop +silent i3-msg focus output primary +silent i3-msg workspace 'panic1' +silent i3-msg focus output right +silent i3-msg workspace 'panic2' + +# stop playing media (if any) +silent mpc pause +silent playerctl -a pause + +# mute mic/headphones +silent pactl set-sink-mute @DEFAULT_SINK@ true +silent pactl set-source-mute @DEFAULT_SOURCE@ true + |