aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/panic
blob: 1fa978bac818c2c7dcc3ec2705c474a9756327d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
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