mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Move back to systemd-lock-handler
This commit is contained in:
parent
a5191afbf9
commit
bd7f0b78a6
|
@ -1,9 +1,9 @@
|
||||||
#lock-cmd = swaylock -fF --image /home/itsdrike/Pictures/Wallpapers/Categories/Extra/CommieGNULinux.png --indicator-x-position 300 --indicator-y-position 300
|
|
||||||
|
|
||||||
|
|
||||||
general {
|
general {
|
||||||
lock_cmd = swaylock -fF # dbus/sysd lock command (loginctl lock-session)
|
#lock_cmd = swaylock -fF # handled by systemd-lock-handler
|
||||||
unlock-cmd = killall -s SIGUSR1 swaylock # same as above, but unlock
|
unlock-cmd = killall -s SIGUSR1 swaylock # same as above, but unlock
|
||||||
|
|
||||||
before_sleep_cmd = loginctl lock-session && sleep 2
|
before_sleep_cmd = loginctl lock-session && sleep 2
|
||||||
ignore_dbus_inhibit = false
|
ignore_dbus_inhibit = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description="Idle management daemon"
|
Description="Idle management daemon"
|
||||||
PartOf=graphica-session.target
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/stdbuf -oL /usr/bin/hypridle
|
ExecStart=/usr/bin/stdbuf -oL /usr/bin/hypridle
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/home/itsdrike/.config/systemd/user/systemd-lock-handler-swaylock.service
|
|
@ -0,0 +1,19 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run Swaylock screenlocker on lock dbus event (using systemd-lock-handler)
|
||||||
|
# if swaylock exists cleanly, unlock this session
|
||||||
|
OnSuccess=unlock.target
|
||||||
|
# When lock.target is stopped, stop this too
|
||||||
|
PartOf=lock.target
|
||||||
|
# Delay lock.target until this service is ready
|
||||||
|
After=lock.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# systemd will consider this service started when swaylock forks
|
||||||
|
# which swaylock will only do after it has locked the screen
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/bin/swaylock -fF
|
||||||
|
#ExecStart=/usr/bin/swaylock -fF --image /home/itsdrike/Pictures/Wallpapers/Categories/Extra/CommieGNULinux.png --indicator-x-position 300 --indicator-y-position 300
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=lock.target
|
|
@ -3,3 +3,4 @@ Description=Waylnad compositor loaded and ready
|
||||||
BindsTo=wm-ready.target
|
BindsTo=wm-ready.target
|
||||||
Wants=xdg-desktop-portal.service
|
Wants=xdg-desktop-portal.service
|
||||||
Wants=xdg-desktop-portal-hyprland.service
|
Wants=xdg-desktop-portal-hyprland.service
|
||||||
|
Wants=systemd-lock-handler.service
|
||||||
|
|
Loading…
Reference in a new issue