emacs wip, swayidle fix

This commit is contained in:
kat witch 2021-08-20 22:48:22 +01:00
parent 8994f29c44
commit d0bc8d1da5
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
11 changed files with 346 additions and 9 deletions

View file

@ -4,7 +4,7 @@ let
footwrap = pkgs.writeShellScriptBin "footwrap" ''
exec foot "$2"
'';
lockCommand = "${pkgs.swaylock-fancy}/bin/swaylock-fancy -d -t ''";
lockCommand = ''${pkgs.swaylock-fancy}/bin/swaylock-fancy -d -t ""'';
in
{
home.sessionVariables = {
@ -28,7 +28,7 @@ in
Type = "simple";
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 '${lockCommand} \
timeout 300 '${lockCommand}' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '${lockCommand}'