Better folder structure
This commit is contained in:
parent
8778fa8ccb
commit
c4e5ccf6bf
75 changed files with 174 additions and 172 deletions
33
hm_modules/xidlehook.nix
Normal file
33
hm_modules/xidlehook.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
xscreensaverCmd = "${pkgs.xscreensaver}/bin/xscreensaver-command -activate";
|
||||
lockCmd = "${pkgs.lockscreen}/bin/lockscreen";
|
||||
in
|
||||
{
|
||||
services.xidlehook = {
|
||||
enable = true;
|
||||
# not-when-audio = false;
|
||||
not-when-fullscreen = true;
|
||||
timers = [
|
||||
{
|
||||
command = lockCmd;
|
||||
delay = 300;
|
||||
}
|
||||
{
|
||||
command = xscreensaverCmd;
|
||||
delay = 120;
|
||||
}
|
||||
];
|
||||
};
|
||||
services.xscreensaver = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mode = "blank";
|
||||
fadeTicks = 20;
|
||||
lock = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue