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

@@ -13,9 +13,7 @@ let
message="󰃠 Brightness: $brightness_level%"
${pkgs.libnotify}/bin/notify-send "$message" \
-h int:value:"$brightness_level" \
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
notif "brightness" "$message" "extraargs=-h int:value:$brightness_level"
'';
brightness-up = pkgs.writeShellScriptBin "brightness-up" ''