Keyd : Add system poweroff.

This commit is contained in:
Dmitry Voronin 2024-05-06 22:30:55 +03:00
parent 220c064fa5
commit 28342f0cb1
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,7 @@ in {
};
};
# NOTE: Allow user access.
# HACK: Allow user access.
tmpfiles.rules = [
"z ${controlFileMax} 0777 - - - -"
"z ${controlFileMin} 0777 - - - -"

View file

@ -47,6 +47,7 @@
layer_system = {
p = "command(powersave toggle)";
l = "command(powerlimit toggle)";
z = "command(systemctl poweroff -i)";
};
layer_macro = {};

View file

@ -12,7 +12,7 @@
};
};
# NOTE: Allow user access.
# HACK: Allow user access.
tmpfiles.rules = [ "z ${controlFile} 0777 - - - -" ];
};
}