dots-hyprland
dots-hyprland copied to clipboard
Can't lock device
Distro: Arch Linux
Problem: The lock button and "loginctl lock-session" command are not locking the device, but "hyprlock" works fine.
Details:
- I'm unable to locate relevant logs to troubleshoot the issue.
any solutions you've found? Facing the same problem here. @end-4
Hello! I had the same issue, when I tried to add Hyprland as a default_session to greetd to skip the greeter and open hyprlock from exec-once. At first, to fix it I added agreety to default_session and moved Hyprland to initial_session to enable autologin. Here is the config:
[terminal]
vt = 1
[default_session]
command = "agreety --cmd Hyprland"
user = "greeter"
[initial_session]
command = "Hyprland"
user = "asalde_le1"
But there was a problem: if I logged out from Hyprland, I needed to type password twice. To fix it I decided to use autologin instead of greetd. To install it:
yay -S autologin
sudo systemctl enable autologin
sudo ln -fs /usr/lib/systemd/system/autologin.service /etc/systemd/system/display-manager.ser
vice
To configure it edit /usr/lib/systemd/system/autologin.service. My ExecStart:
ExecStart=autologin asalde_le1 sh -c 'source /etc/profile && Hyprland'
It is like this, because by default autologin doesn't load envs, so I do it manually to get localized system, etc.
Same issue here.
On my side i just replaced the exec commands in hyprland config to use hyprlock instead of loginctl + edited ags script for the button lock session to use hyprlock too.
Works like a charm.
Closing as outdated.