Update flake.nix
This commit is contained in:
parent
2381381cc8
commit
31e9bc98f9
1 changed files with 3 additions and 3 deletions
|
|
@ -39,16 +39,16 @@
|
|||
let
|
||||
zenityDialog =
|
||||
msg: cmd:
|
||||
''${pkgs.zenity}/bin/zenity --question --text "Уверены, что хотите ${msg}?" --default-cancel; && ${cmd}'';
|
||||
''${pkgs.zenity}/bin/zenity --question --text "Уверены, что хотите ${msg}?" --default-cancel && ${cmd}'';
|
||||
in
|
||||
pkgs.writeShellScript "powermenu" ''
|
||||
if [ "$1" = "poweroff" ]; then
|
||||
${zenityDialog "Выключить" "poweroff"}
|
||||
${zenityDialog "выключить" "poweroff"}
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "reboot" ]; then
|
||||
${zenityDialog "Выключить" "reboot"}
|
||||
${zenityDialog "перезагрузить" "reboot"}
|
||||
exit 0
|
||||
fi
|
||||
''
|
||||
|
|
|
|||
Loading…
Reference in a new issue