fixing hypridle
This commit is contained in:
parent
e185f30421
commit
6d9644501b
9 changed files with 47 additions and 43 deletions
|
@ -6,8 +6,8 @@
|
|||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "shikanectl reload && brillo -e -u 150000 -I";
|
||||
before_sleep_cmd = "loginctl lock-session && brillo -e -O";
|
||||
after_sleep_cmd = "/home/emenel/.local/bin/on-unlock";
|
||||
ignore_dbus_inhibit = false;
|
||||
ignore_systemd_inhibit = false;
|
||||
};
|
||||
|
@ -15,33 +15,44 @@
|
|||
listener = [
|
||||
{
|
||||
timeout = "60";
|
||||
on-timeout = "dim-all-monitors";
|
||||
on-timeout = "/home/emenel/.local/bin/dim-all-monitors";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
|
||||
# battery timers
|
||||
{
|
||||
timeout = "90";
|
||||
on-timeout = "systemd-ac-power || loginctl lock-session";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
{
|
||||
timeout = "120";
|
||||
on-timeout = "systemd-ac-power || lock-power-off-monitors";
|
||||
on-timeout = "systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
{
|
||||
timeout = "180";
|
||||
on-timeout = "systemd-ac-power || lock-suspend";
|
||||
on-timeout = "systemd-ac-power || /home/emenel/.local/bin/lock-suspend";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
|
||||
# ac power timers
|
||||
{
|
||||
timeout = "180";
|
||||
on-timeout = "systemd-ac-power && loginctl lock-session";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "240";
|
||||
on-timeout = "systemd-ac-power && lock-power-off-monitors";
|
||||
on-timeout = "systemd-ac-power && /home/emenel/.local/bin/lock-power-off-monitors";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = "600";
|
||||
on-timeout = "systemd-ac-power && lock-suspend";
|
||||
on-timeout = "systemd-ac-power && /home/emenel/.local/bin/lock-suspend";
|
||||
on-resume = "/home/emenel/.local/bin/on-unlock";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue