adopt hypridle and hyprlock; byebye swayidle and swaylock

This commit is contained in:
end-4
2024-02-20 22:24:39 +07:00
parent f2cbac2e6a
commit ac2b144f97
13 changed files with 228 additions and 62 deletions
+21
View File
@@ -0,0 +1,21 @@
$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = systemctl suspend
general {
lock_cmd = $lock_cmd
# unlock_cmd
before_sleep_cmd = $lock_cmd
# after_sleep_cmd
}
listener {
timeout = 300
on-timeout = $lock_cmd
# on-resume
}
listener {
timeout = 450
on-timeout = $suspend_cmd
# on-resume
}