From 5c4a2489186232248995909ba35105053efa3d60 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 7 Aug 2024 09:42:07 -0300 Subject: Added dnd mode and general i3 fixes --- .config/i3/scripts/toggle_dnd.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/i3/scripts/toggle_dnd.sh (limited to '.config/i3/scripts/toggle_dnd.sh') diff --git a/.config/i3/scripts/toggle_dnd.sh b/.config/i3/scripts/toggle_dnd.sh new file mode 100755 index 00000000..a11a4f83 --- /dev/null +++ b/.config/i3/scripts/toggle_dnd.sh @@ -0,0 +1,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 -- cgit v1.2.3