diff --git a/.basescripts/dwmblocks/caffeine.sh b/.basescripts/dwmblocks/caffeine.sh new file mode 100755 index 0000000..684429e --- /dev/null +++ b/.basescripts/dwmblocks/caffeine.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +state="$(xset q | grep "DPMS is" | awk '{print $3}')" + +if [ "$state" = "Enabled" ]; then + echo "[*]/" +else + echo "[ ]/" +fi