exec-lock for autorestarting lockscreens #11242
-
|
currently if the lockscreen crashes you are greeted with the splash of death, it'd be nice to run a command (X number of times since last unlock to prevent infinite crash loop situations) that way this could be put to an end without fixing every crash possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Turns out this is totally unnessary, can be solved like this
adapt to your needs, the only difference between my startup and screenshot configs is that one has a wallpaper. |
Beta Was this translation helpful? Give feedback.
Turns out this is totally unnessary, can be solved like this
swayidle timeout 600 'pidof hyprlock || ( pkill -15 tofi > /dev/null & hyprlock -c ~/.config/hypr/hyprlock/hyprlock-screenshot.conf --grace 59 > /dev/null || while ! hyprlock -c ~/.config/hypr/hyprlock/hyprlock-startup.conf > /dev/null; do sleep 0.01 > /dev/null; done > /dev/null )' timeout 660 'powerprofilesctl set power-saver & hyprctl dispatch dpms off' resume 'rg -qq 0 /sys/class/power_supply/*/online && powerprofilesctl set power-saver || powerprofilesctl set performance'adapt to your needs, the only difference between my startup and screenshot configs is that one has a wallpaper.