mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 00:53:55 -05:00
hyprland/sway: cleaned up idle scripts
This commit is contained in:
parent
795ed12ecf
commit
61316e88ac
|
@ -129,7 +129,8 @@
|
|||
|
||||
idled = pkgs.writeShellScript "hyprland-idled" ''
|
||||
${lib.getExe pkgs.swayidle} -w \
|
||||
\
|
||||
before-sleep '${media} pause' \
|
||||
before-sleep '${lock}' \
|
||||
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
||||
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
||||
timeout 300 '${lock}' \
|
||||
|
@ -140,8 +141,6 @@
|
|||
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
||||
else ''\''
|
||||
}
|
||||
before-sleep '${media} pause' \
|
||||
before-sleep '${lock}'
|
||||
'';
|
||||
|
||||
hyprnome = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprnome;
|
||||
|
|
|
@ -119,6 +119,8 @@
|
|||
lock = lib.getExe pkgs.swaylock;
|
||||
idled = pkgs.writeShellScript "sway-idled" ''
|
||||
${lib.getExe pkgs.swayidle} -w \
|
||||
before-sleep '${media} pause' \
|
||||
before-sleep '${lock}' \
|
||||
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
||||
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
||||
timeout 300 '${lock}' \
|
||||
|
@ -129,8 +131,6 @@
|
|||
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
||||
else ''\''
|
||||
}
|
||||
before-sleep '${media} pause' \
|
||||
before-sleep '${lock}'
|
||||
'';
|
||||
|
||||
screenshot = lib.getExe' pkgs.shotman "shotman";
|
||||
|
|
Loading…
Reference in a new issue