Files
superior_dotfiles/private_dot_local/exact_bin/executable_check-do-not-disturb.sh
Szymon P e38e26900a Remove .config/yazi/theme.toml
Change attributes of .local/bin/old/brightness.sh
Change attributes of .local/bin/old/change_colors.sh
Change attributes of .local/bin/old/random_wallpaper.sh
Change attributes of .local/bin/old/screenshots_overcomplified.sh
Change attributes of .local/bin/brightness.sh
Change attributes of .local/bin/change_colors.sh
Change attributes of .local/bin/change_wallpaper.sh
Change attributes of .local/bin/check-do-not-disturb.sh
Change attributes of .local/bin/check-if-muted.sh
Change attributes of .local/bin/home_backup.sh
Change attributes of .local/bin/random_wallpaper.sh
Change attributes of .local/bin/restart_waybar.sh
Change attributes of .local/bin/screenshot.sh
Change attributes of .local/bin/screenshots.sh
Change attributes of .local/bin/sekirofpsunlock
Change attributes of .local/bin/start_coding.sh
Change attributes of .local/bin/system_setup.sh
Change attributes of .local/bin/wp-vol.sh
Change attributes of .local/bin/steamtinkerlaunch
2025-09-29 12:00:22 +02:00

29 lines
616 B
Bash

#!/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