sway: Lock before sleeping
This commit is contained in:
parent
8b9a61339e
commit
72f04b3307
1 changed files with 18 additions and 13 deletions
|
@ -264,21 +264,26 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
frogeye.desktop.i3.bindmodes = {
|
frogeye.desktop.i3.bindmodes =
|
||||||
"[L] Vérouillage [E] Déconnexion [S] Veille [H] Hibernation [R] Redémarrage [P] Extinction" = {
|
let
|
||||||
bindings = {
|
lock = "${pkgs.procps}/bin/pkill -USR1 swayidle";
|
||||||
"l" = "exec --no-startup-id ${pkgs.procps}/bin/pkill -USR1 swayidle, mode default";
|
in
|
||||||
"e" = "exit, mode default";
|
{
|
||||||
# TODO Sometimes, exit gets stuck on terminal. Restarting greetd helps.
|
"[L] Vérouillage [E] Déconnexion [S] Veille [H] Hibernation [R] Redémarrage [P] Extinction" = {
|
||||||
"s" =
|
bindings = {
|
||||||
"exec --no-startup-id ${pkgs.systemd}/bin/systemctl suspend --check-inhibitors=no, mode default";
|
"l" = "exec --no-startup-id ${lock}, mode default";
|
||||||
"h" = "exec --no-startup-id ${pkgs.systemd}/bin/systemctl hibernate, mode default";
|
"e" = "exit, mode default";
|
||||||
"r" = "exec --no-startup-id ${pkgs.systemd}/bin/systemctl reboot, mode default";
|
# TODO Sometimes, exit gets stuck on terminal. Restarting greetd helps.
|
||||||
"p" = "exec --no-startup-id ${pkgs.systemd}/bin/systemctl poweroff -i, mode default";
|
"s" =
|
||||||
|
"exec --no-startup-id ${lock}, exec --no-startup-id ${pkgs.systemd}/bin/systemctl suspend --check-inhibitors=no, mode default";
|
||||||
|
"h" =
|
||||||
|
"exec --no-startup-id ${lock}, exec --no-startup-id ${pkgs.systemd}/bin/systemctl hibernate, mode default";
|
||||||
|
"r" = "exec --no-startup-id ${pkgs.systemd}/bin/systemctl reboot, mode default";
|
||||||
|
"p" = "exec --no-startup-id ${pkgs.systemd}/bin/systemctl poweroff -i, mode default";
|
||||||
|
};
|
||||||
|
mod_enter = "Escape";
|
||||||
};
|
};
|
||||||
mod_enter = "Escape";
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
frogeye.desktop.i3.bindmodes = lib.mkOption {
|
frogeye.desktop.i3.bindmodes = lib.mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue