home,idle: suspend device after 20min
This commit is contained in:
parent
6e84d833eb
commit
55b8095a32
1 changed files with 7 additions and 3 deletions
|
@ -10,12 +10,16 @@
|
|||
{
|
||||
timeout = 900;
|
||||
command = "swaylock";
|
||||
}
|
||||
} # lock screen
|
||||
{
|
||||
timeout = 905;
|
||||
command = ''${pkgs.sway}/bin/swaymsg "output * dpms off"'';
|
||||
resumeCommand = ''${pkgs.sway}/bin/swaymsg "output * dpms on"'';
|
||||
command = "${pkgs.sway}/bin/swaymsg \"output * dpms off\"";
|
||||
resumeCommand = "${pkgs.sway}/bin/swaymsg \"output * dpms on\"";
|
||||
} # turn off screen
|
||||
{
|
||||
timeout = 1200;
|
||||
command = ''systemctl suspend'';
|
||||
} # suspend
|
||||
];
|
||||
events = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue