summaryrefslogtreecommitdiff
path: root/.config/i3/scripts/toggle_dnd.sh
blob: a11a4f83038bd42dbc75eb3045983714e570d1cc (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

state=$(xfconf-query -c xfce4-notifyd -p /do-not-disturb)
if [ "$state" = "true" ]; then
  xfconf-query -c xfce4-notifyd -p /do-not-disturb -s false
  notify-send "Do not disturb: Disabled" -t 2000 -i notification
else
  xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true
  notify-send -u critical "Do not disturb: Enabled" -t 2000 -i notification
fi