summaryrefslogtreecommitdiff
path: root/.config/polybar/dnd_status.sh
blob: c4e798c7a99048cda818fa8028d0c230c12cfa0d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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