Add suspend command
This commit is contained in:
parent
29e11a06f4
commit
708c15d3d8
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
suspend = pkgs.writeScriptBin "suspend" ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
exec systemctl suspend
|
||||
'';
|
||||
passbemenu = pkgs.writeScriptBin "passbemenu" ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
shopt -s nullglob globstar
|
||||
|
@ -26,4 +30,4 @@ let
|
|||
password_value=$(${pkgs.pass-wayland}/bin/pass show "$password" | tail -1 2>/dev/null)
|
||||
${pkgs.wtype}/bin/wtype "''${password_value}"
|
||||
'';
|
||||
in { home.packages = [ passbemenu ]; }
|
||||
in { home.packages = [ passbemenu suspend ]; }
|
||||
|
|
Loading…
Add table
Reference in a new issue