dotfiles/.config/polybar/dnd_status.sh

12 lines
175 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
STATE=$(xfconf-query -c xfce4-notifyd -p /do-not-disturb)
if [ "$STATE" = "true" ]; then
echo "DND ✅"
else
echo "DND ❌"
fi