Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kommynct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant