mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-01-17 12:18:05 +08:00
feat: adds caffeine script
This commit is contained in:
parent
6baac40163
commit
8ad3fa03b0
2 changed files with 13 additions and 0 deletions
11
modules/home/scripts/scripts/caffeine
Executable file
11
modules/home/scripts/scripts/caffeine
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CAFFEINE_FILE="$HOME/.config/hypr/caffeine_mode"
|
||||
|
||||
if [ -f "$CAFFEINE_FILE" ]; then
|
||||
rm "$CAFFEINE_FILE"
|
||||
notify-send "Caffeine" "Disabled"
|
||||
else
|
||||
touch "$CAFFEINE_FILE"
|
||||
notify-send "Caffeine" "Enabled"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue