This commit is contained in:
2026-02-20 01:01:27 +01:00
parent 3e7d82524f
commit d0d1327e9f
17 changed files with 671 additions and 0 deletions

28
scripts/check-do-not-disturb.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
disturbed=$(makoctl mode | grep -i do-not-disturb) > /dev/null
mute_icon=""
unmute_icon="🕭"
case $1 in
"show")
if [[ $disturbed == "" ]]; then
echo "$unmute_icon"
else
echo "$mute_icon"
fi
;;
"change")
if [[ $disturbed == "" ]]; then
makoctl mode -a do-not-disturb > /dev/null
echo "$unmute_icon"
else
makoctl mode -r do-not-disturb > /dev/null
echo "$mute_icon"
fi
pkill -SIGRTMIN+2 waybar
;;
*)
echo "Arguments are: show, change"
;;
esac