changing wifi to iwd, adding desktop entries for tui apps, etc
This commit is contained in:
parent
1975a1c6c7
commit
f920b83d27
11 changed files with 143 additions and 80 deletions
53
modules/home/swayidle.nix
Normal file
53
modules/home/swayidle.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
|
||||
events = [
|
||||
{
|
||||
event = "lock";
|
||||
command = "pidof hyprlock || hyprlock";
|
||||
}
|
||||
|
||||
{
|
||||
event = "after-resume";
|
||||
command = "shikanectl reload && brillo -e -u 150000 -I";
|
||||
}
|
||||
];
|
||||
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 60;
|
||||
command = "dim-all-monitors";
|
||||
}
|
||||
|
||||
# battery timers
|
||||
{
|
||||
timeout = 120;
|
||||
command = "systemd-ac-power || lock-power-off-monitors";
|
||||
}
|
||||
{
|
||||
timeout = 180;
|
||||
command = "systemd-ac-power || lock-suspend";
|
||||
}
|
||||
|
||||
# ac power timers
|
||||
{
|
||||
timeout = 180;
|
||||
command = "systemd-ac-power && loginctl lock-session";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 240;
|
||||
command = "systemd-ac-power && lock-power-off-monitors";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 600;
|
||||
command = "systemd-ac-power && lock-suspend";
|
||||
}
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue