aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/panic
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-01 10:15:30 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-01 10:15:30 +0200
commitedf92699e07a00324a7cf06f27eb1350db658df7 (patch)
treed651680a6e996f4eee7afae2b63b970e579ac687 /.local/share/bin/panic
parentd0a498a80b8cf634ecc69f049111fb1108282b1d (diff)
various updates
- fcitx5 update (adds config keys, translated comments for some reason) - firefox userChrome + user.js tweaks - mbsyncrc SSLType -> TLSType - copy-subs update - vimrc update (hexokinase, small tweaks) - picom shadow exclude tweaks for firefox - remove whoami module from polybar - ccpreview tweaks - panic script does more now
Diffstat (limited to '.local/share/bin/panic')
-rwxr-xr-x.local/share/bin/panic22
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
+