Change notification system

This commit is contained in:
Hadi
2024-06-24 21:13:22 +02:00
parent 1cdfe8e278
commit 3b84f735ee
9 changed files with 50 additions and 38 deletions

View File

@@ -14,8 +14,7 @@ let
pkill hypridle
message="󰅶 Caffeine Activated"
fi
${pkgs.libnotify}/bin/notify-send "$message" \
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
notif "caffeine" "$message"
'';
in { home.packages = [ caffeine-status caffeine ]; }