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
|
libva-vdpau-driver
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
];
|
];
|
||||||
programs.light.enable = true;
|
|
||||||
hardware.opentabletdriver.enable = true;
|
hardware.opentabletdriver.enable = true;
|
||||||
hardware.keyboard.qmk.enable = true;
|
hardware.keyboard.qmk.enable = true;
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
kblight = "light -s sysfs/leds/${config.me.kbBacklightDevice}";
|
kblight = "brightnessctl -d ${config.me.kbBacklightDevice}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ config.services.hypridle.package ];
|
home.packages = [ config.services.hypridle.package ];
|
||||||
|
|
@ -16,18 +16,18 @@ in
|
||||||
listener = lib.optionals (config.me.kbBacklightDevice != null) [
|
listener = lib.optionals (config.me.kbBacklightDevice != null) [
|
||||||
{
|
{
|
||||||
timeout = 120;
|
timeout = 120;
|
||||||
on-timeout = "${kblight} -O && ${kblight} -S 0";
|
on-timeout = "${kblight} -s && ${kblight} 0";
|
||||||
on-resume = "${kblight} -I";
|
on-resume = "${kblight} -r";
|
||||||
}
|
}
|
||||||
] ++ [
|
] ++ [
|
||||||
{
|
{
|
||||||
timeout = 150;
|
timeout = 150;
|
||||||
on-timeout = "light -O && light -T 0.5";
|
on-timeout = "brightnessctl -s && brightnessctl 50%-";
|
||||||
on-resume = "light -I";
|
on-resume = "brightnessctl -r";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 180;
|
timeout = 180;
|
||||||
on-timeout = "light -I && loginctl lock-session";
|
on-timeout = "brightnessctl -r && loginctl lock-session";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 195;
|
timeout = 195;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ in {
|
||||||
nodePackages_latest.pnpm
|
nodePackages_latest.pnpm
|
||||||
] ++ lib.optionals config.me.gui [
|
] ++ lib.optionals config.me.gui [
|
||||||
android-studio
|
android-studio
|
||||||
|
brightnessctl
|
||||||
drawio
|
drawio
|
||||||
element-desktop
|
element-desktop
|
||||||
evince
|
evince
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue