mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 21:31:54 -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" ''
|
idled = pkgs.writeShellScript "hyprland-idled" ''
|
||||||
${lib.getExe pkgs.swayidle} -w \
|
${lib.getExe pkgs.swayidle} -w \
|
||||||
\
|
before-sleep '${media} pause' \
|
||||||
|
before-sleep '${lock}' \
|
||||||
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
||||||
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
||||||
timeout 300 '${lock}' \
|
timeout 300 '${lock}' \
|
||||||
|
@ -140,8 +141,6 @@
|
||||||
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
||||||
else ''\''
|
else ''\''
|
||||||
}
|
}
|
||||||
before-sleep '${media} pause' \
|
|
||||||
before-sleep '${lock}'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hyprnome = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprnome;
|
hyprnome = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprnome;
|
||||||
|
|
|
@ -119,6 +119,8 @@
|
||||||
lock = lib.getExe pkgs.swaylock;
|
lock = lib.getExe pkgs.swaylock;
|
||||||
idled = pkgs.writeShellScript "sway-idled" ''
|
idled = pkgs.writeShellScript "sway-idled" ''
|
||||||
${lib.getExe pkgs.swayidle} -w \
|
${lib.getExe pkgs.swayidle} -w \
|
||||||
|
before-sleep '${media} pause' \
|
||||||
|
before-sleep '${lock}' \
|
||||||
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
||||||
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
||||||
timeout 300 '${lock}' \
|
timeout 300 '${lock}' \
|
||||||
|
@ -129,8 +131,6 @@
|
||||||
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
||||||
else ''\''
|
else ''\''
|
||||||
}
|
}
|
||||||
before-sleep '${media} pause' \
|
|
||||||
before-sleep '${lock}'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
screenshot = lib.getExe' pkgs.shotman "shotman";
|
screenshot = lib.getExe' pkgs.shotman "shotman";
|
||||||
|
|
Loading…
Reference in a new issue