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