back to hyprlock reluctantly
This commit is contained in:
parent
cfb2e9209e
commit
4b25be419f
8 changed files with 350 additions and 52 deletions
|
@ -11,7 +11,7 @@ in
|
|||
events = [
|
||||
{
|
||||
event = "lock";
|
||||
command = "${pkgs.swaylock-plugin}/bin/swaylock";
|
||||
command = "${pkgs.swaylock-plugin}/bin/swaylock-plugin";
|
||||
}
|
||||
{
|
||||
event = "after-resume";
|
||||
|
@ -29,11 +29,7 @@ in
|
|||
# battery timers
|
||||
{
|
||||
timeout = 90;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.systemd}/bin/loginctl lock-session";
|
||||
}
|
||||
{
|
||||
timeout = 120;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.niri-unstable}/bin/niri msg action power-off-monitors";
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.niri-unstable}/bin/niri msg action power-off-monitors && ${pkgs.systemd}/bin/loginctl lock-session";
|
||||
}
|
||||
{
|
||||
timeout = 180;
|
||||
|
@ -43,14 +39,8 @@ in
|
|||
# ac power timers
|
||||
{
|
||||
timeout = 180;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.systemd}/bin/loginctl lock-session";
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.niri-unstable}/bin/niri msg action power-off-monitors && ${pkgs.systemd}/bin/loginctl lock-session";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 240;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.niri-unstable}/bin/niri msg action power-off-monitors";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 600;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.systemd}/bin/systemctl suspend";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue