pinwheel: Replace swaylock with hyprlock

Fixes black internal screen after unlocking with external monitor
disconnected, and occasional Hyprland crashes on lock.
This commit is contained in:
Alexander Heldt
2026-02-23 10:44:31 +01:00
parent 7d6785f27e
commit ac1c5c372f
3 changed files with 33 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ in
path = [
pkgs.coreutils # For `cat`
pkgs.libnotify
pkgs.swaylock
pkgs.hyprlock
];
script =
@@ -103,7 +103,7 @@ in
BATTERY_STATUS=$(cat /sys/class/power_supply/${lowbat.battery}/status)
if [[ $BATTERY_STATUS = "Discharging" ]]; then
${pause-music}; ${pkgs.swaylock}/bin/swaylock -f; systemctl suspend
${pause-music}; ${pkgs.hyprlock}/bin/hyprlock & sleep 0.5; systemctl suspend
fi
fi
'';