You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open my laptop lid, I briefly see my desktop, and then hyprlock shows up. This is with a bone stock hypridle config (the code from the example hypridle config on the hyprland wiki), even worse, hyprlock isn't focused, so unless I move my mouse, I type in other applications.
I shouldn't have to state why this is an absolutely horrible security hole, but more importantly for me, it's just plain annoying.
here's my hypridle config:
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1200 # 20min
on-timeout = systemctl suspend # suspend pc
}
I've tried futzing around with the before_sleep_cmd in my hypridle config by changing it to activate hyprlock --immediate to no avail, as well as adding lines to my hyprland.conf that either run systemctl suspend or hyprlock --immediate on laptop lid close (and the latter of which I also tried on laptop lid open. But when I ran hyprlock on both lid close and lid open, hyprlock was frozen entirely)
Any help/advice? I really love hyprlock because of how damn good looking it is, I really want it to work.
The text was updated successfully, but these errors were encountered:
/etc/systemd/system/[email protected]
-----
[Unit]Description=User Suspend Actions
Before=sleep.target
[Service]User=%i
Type=simple
Environment=XDG_RUNTIME_DIR="/run/user/$(id -u %i)"ExecStart=/usr/bin/hyprlock # this fails and then hypridle starts hyprlock -- no clue why this worksExecStartPost=/usr/bin/sleep 1
[Install]WantedBy=sleep.target
activate with systemctl enable user-suspend@{your username}.service
It's a little temperamentful, sometimes this service can be disabled and it works fine, sometimes I get the issue you're describing. I haven't had the issue since adding this service though.
When I open my laptop lid, I briefly see my desktop, and then hyprlock shows up. This is with a bone stock hypridle config (the code from the example hypridle config on the hyprland wiki), even worse, hyprlock isn't focused, so unless I move my mouse, I type in other applications.
I shouldn't have to state why this is an absolutely horrible security hole, but more importantly for me, it's just plain annoying.
here's my hypridle config:
I've tried futzing around with the
before_sleep_cmd
in my hypridle config by changing it to activatehyprlock --immediate
to no avail, as well as adding lines to myhyprland.conf
that either runsystemctl suspend
orhyprlock --immediate
on laptop lid close (and the latter of which I also tried on laptop lid open. But when I ran hyprlock on both lid close and lid open, hyprlock was frozen entirely)Any help/advice? I really love hyprlock because of how damn good looking it is, I really want it to work.
The text was updated successfully, but these errors were encountered: