mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +00:00
Migrate swaylock to hyprlock
This commit is contained in:
parent
9bb205b74d
commit
118cd7f676
5 changed files with 175 additions and 52 deletions
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Run hyprlock 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]
|
||||
ExecStart=/usr/bin/stdbuf -oL /usr/bin/hyprlock
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=lock.target
|
|
@ -1,19 +0,0 @@
|
|||
[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
|
Loading…
Add table
Add a link
Reference in a new issue