home | idle changes
This commit is contained in:
parent
eba03f69d2
commit
a85f202eb4
3 changed files with 21 additions and 22 deletions
|
|
@ -2,19 +2,19 @@
|
|||
{
|
||||
xdg.configFile."sway/config".source = ./files/sway/${osConfig.networking.hostName};
|
||||
|
||||
# services = {
|
||||
# swayidle = {
|
||||
# enable = true;
|
||||
# timeouts = [
|
||||
# { timeout = 300; command = "/home/bin/don/lock.sh"; }
|
||||
# { timeout = 360; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; }
|
||||
# ];
|
||||
# events = [
|
||||
# { event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||
# { event = "before-sleep"; command = "/home/bin/don/lock.sh"; }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
services = {
|
||||
swayidle = {
|
||||
enable = true;
|
||||
timeouts = [
|
||||
{ timeout = 300; command = "/home/bin/don/lock.sh"; }
|
||||
{ timeout = 360; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; }
|
||||
];
|
||||
events = [
|
||||
{ event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||
{ event = "before-sleep"; command = "/home/bin/don/lock.sh"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
swaylock = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue