From 17aa9650fbf7364cc82cbbfc316e0658a6675c93 Mon Sep 17 00:00:00 2001 From: Amar Keshav Date: Wed, 29 Jul 2026 21:59:51 +0530 Subject: [PATCH] Add Simple Toggle Logic for Caffeinated --- toggcafe.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 toggcafe.sh diff --git a/toggcafe.sh b/toggcafe.sh new file mode 100755 index 0000000..7658eb6 --- /dev/null +++ b/toggcafe.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if pgrep -x keepawake >/dev/null; then + pkill -x $(which caffeinated) + notify-send "Caffeine on" "Disabled 😴" +else + $(which caffeinated) & + notify-send "Caffeine off" "Enabled ☕" +fi