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:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user