custom-performance: entire rewrite

Now kills caelestia, change monitor hz and launches lightweight
alternative to calestia (waybar and swaync)
This commit is contained in:
2026-06-14 11:19:36 +02:00
parent 88eb91c780
commit 246412ae4b
7 changed files with 76 additions and 12 deletions
+7 -6
View File
@@ -51,11 +51,12 @@
PLATFORM_PROFILE_ON_BAT = "powersave";
STOP_CHARGE_THRESH_BAT1 = 80;
};
<<<<<<< HEAD
};*/
environment.systemPackages = [
self.packages.${pkgs.system}.custom-performance
];
};
};
perSystem = {pkgs, ...}: let
NotifySound = ../../assets/battery_notify.mp3;
in {
@@ -361,7 +362,7 @@
pkill -f caelestia || true
pkill shell || true
pkill -f custom-wallpaper || true
# Start lightweight notifications
pkill swaync || true
swaync & disown
@@ -372,7 +373,7 @@
# Lower refresh rate (BIGGEST win)
hyprctl keyword monitor "eDP-1,2560x1600@60,0x0,1"
# Core performance toggles
hyprctl --batch "\
keyword animations:enabled 0;\
@@ -420,12 +421,12 @@
if [[ -f "''${STATE}.brightness" ]]; then
brightnessctl set "$(cat "''${STATE}.brightness")" 2>/dev/null || true
fi
rm -f "$STATE" "''${STATE}.brightness"
notify-send "Battery Saver" "Disabled"
}
if [[ -f "$STATE" ]]; then
disable
else