mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
emacs wip, swayidle fix
This commit is contained in:
parent
8994f29c44
commit
d0bc8d1da5
11 changed files with 346 additions and 9 deletions
|
|
@ -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}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue