system/packages-gui: move light to brightnessctl in home
Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled
Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled
This commit is contained in:
parent
2239c1cc64
commit
d11d080c94
3 changed files with 7 additions and 7 deletions
|
|
@ -10,7 +10,6 @@
|
|||
libva-vdpau-driver
|
||||
libvdpau-va-gl
|
||||
];
|
||||
programs.light.enable = true;
|
||||
hardware.opentabletdriver.enable = true;
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
programs.steam = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
kblight = "light -s sysfs/leds/${config.me.kbBacklightDevice}";
|
||||
kblight = "brightnessctl -d ${config.me.kbBacklightDevice}";
|
||||
in
|
||||
{
|
||||
home.packages = [ config.services.hypridle.package ];
|
||||
|
|
@ -16,18 +16,18 @@ in
|
|||
listener = lib.optionals (config.me.kbBacklightDevice != null) [
|
||||
{
|
||||
timeout = 120;
|
||||
on-timeout = "${kblight} -O && ${kblight} -S 0";
|
||||
on-resume = "${kblight} -I";
|
||||
on-timeout = "${kblight} -s && ${kblight} 0";
|
||||
on-resume = "${kblight} -r";
|
||||
}
|
||||
] ++ [
|
||||
{
|
||||
timeout = 150;
|
||||
on-timeout = "light -O && light -T 0.5";
|
||||
on-resume = "light -I";
|
||||
on-timeout = "brightnessctl -s && brightnessctl 50%-";
|
||||
on-resume = "brightnessctl -r";
|
||||
}
|
||||
{
|
||||
timeout = 180;
|
||||
on-timeout = "light -I && loginctl lock-session";
|
||||
on-timeout = "brightnessctl -r && loginctl lock-session";
|
||||
}
|
||||
{
|
||||
timeout = 195;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue