initial
This commit is contained in:
10
hosts/sarien/work_user/desktop/sway/chrome-backlight.nix
Normal file
10
hosts/sarien/work_user/desktop/sway/chrome-backlight.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{lib, ...}: {
|
||||
programs.waybar.settings.bar-0."custom/kbd-backlight" = lib.mkDefault {
|
||||
exec = "cat /sys/class/leds/chromeos::kbd_backlight/brightness";
|
||||
interval = 1;
|
||||
format = "{}% {icon}";
|
||||
format-icons = [""];
|
||||
on-scroll-up = "light -s sysfs/leds/chromeos::kbd_backlight -A 5%";
|
||||
on-scroll-down = "light -s sysfs/leds/chromeos::kbd_backlight -U 5%";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user