those are core packages
This commit is contained in:
parent
1dcb422dbb
commit
d637bb5dc3
4 changed files with 10 additions and 13 deletions
|
|
@ -21,10 +21,10 @@ in {
|
|||
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
|
||||
unlock_cmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
|
||||
lock_cmd = "pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
|
||||
unlock_cmd = "pkill -USR1 hyprlock";
|
||||
|
||||
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
};
|
||||
|
||||
listener = [
|
||||
|
|
@ -32,7 +32,7 @@ in {
|
|||
timeout = if config.modules.core.laptop
|
||||
then 60 * 2 # 2 min
|
||||
else 60 * 35; # 35 min
|
||||
on-timeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock computer
|
||||
on-timeout = "loginctl lock-session"; # lock computer
|
||||
}
|
||||
] ++ optionals (config.modules.core.laptop) [
|
||||
{
|
||||
|
|
@ -47,7 +47,7 @@ in {
|
|||
}
|
||||
{
|
||||
timeout = 60 * 15; # 15 min
|
||||
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
|
||||
on-timeout = "systemctl suspend"; # sleep/suspend
|
||||
}
|
||||
] ++ optional config.modules.desktop.niri.enable {
|
||||
timeout = if config.modules.core.laptop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue