trying to get swayidle/lock working properly
This commit is contained in:
parent
727c106bdc
commit
0a990d8308
7 changed files with 71 additions and 36 deletions
|
@ -7,12 +7,12 @@
|
|||
events = [
|
||||
{
|
||||
event = "lock";
|
||||
command = "/home/emenel/.local/bin/session-lock";
|
||||
}
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "/home/emenel/.local/bin/session-lock";
|
||||
command = "/run/current-system/sw/bin/pidof swaylock || ${pkgs.swaylock}/bin/swaylock";
|
||||
}
|
||||
# {
|
||||
# event = "before-sleep";
|
||||
# command = "/home/emenel/.local/bin/session-lock";
|
||||
# }
|
||||
{
|
||||
event = "after-resume";
|
||||
command = "/home/emenel/.local/bin/on-unlock";
|
||||
|
@ -33,11 +33,11 @@
|
|||
}
|
||||
{
|
||||
timeout = 120;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.niri-unstable}/bin/niri msg action power-off-monitors";
|
||||
}
|
||||
{
|
||||
timeout = 180;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-suspend";
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.systemd}/bin/systemctl suspend";
|
||||
}
|
||||
|
||||
# ac power timers
|
||||
|
@ -48,12 +48,12 @@
|
|||
|
||||
{
|
||||
timeout = 240;
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
|
||||
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 && /home/emenel/.local/bin/lock-suspend";
|
||||
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.systemd}/bin/systemctl suspend";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue