From 29888c91c0acfffa7ffa54266c53d5735843bc0c Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 12 Aug 2024 11:52:54 -0300 Subject: Added dnd and protonvpn to polybar --- .config/polybar/dnd_status.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .config/polybar/dnd_status.sh (limited to '.config/polybar/dnd_status.sh') diff --git a/.config/polybar/dnd_status.sh b/.config/polybar/dnd_status.sh new file mode 100755 index 00000000..c4e798c7 --- /dev/null +++ b/.config/polybar/dnd_status.sh @@ -0,0 +1,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 -- cgit v1.2.3