added support for changing backlights on my laptop

This commit is contained in:
Nickiel12 2024-11-22 19:32:33 -08:00
parent 1e960571ee
commit eee528e49e
2 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@ -13,6 +13,10 @@
hardware.graphics.enable = true;
environment.systemPackages = [
pkgs.brightnessctl # brighness manager for hotkeys
];
# tailscale set --exit-node <SEVERNAME> to route through an exit node
services.tailscale.enable = true;
networking.firewall = {

View file

@ -56,6 +56,12 @@ in
"eww open full_screen_bar"
];
binde = if (hostname == "NicksNixLaptop") then
[
",XF86MonBrightnessUp, exec, brightnessctl set 10%+"
",XF86MonBrightnessDown, exec, brightnessctl set 10%-"
] else [];
input = if (hostname == "NicksNixLaptop") then
{
kb_layout = "us";