diff --git a/configuration.nix b/configuration.nix index 8e379f6..b3cc5d9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -319,6 +319,9 @@ ''; }; + # backlight + programs.light.enable = true; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/home.nix b/home.nix index 09f5fc5..d4a10f2 100644 --- a/home.nix +++ b/home.nix @@ -86,7 +86,6 @@ let username = "clara"; in vdhcoapp inkscape prusa-slicer - light ] ++ (if x11mode then [ arandr flameshot diff --git a/programm_configs/sway.nix b/programm_configs/sway.nix index 63ce89a..ca072f0 100644 --- a/programm_configs/sway.nix +++ b/programm_configs/sway.nix @@ -38,6 +38,10 @@ "XF86AudioLowerVolume" = "exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 5%-"; "XF86AudioMute" = "exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle"; + # light + "XF86MonBrightnessDown" = "exec --no-startup-id light -U 10.0"; + "XF86MonBrightnessUp" = "exec --no-startup-id light -A 10.0"; + # Terminal "${mod}+Return" = "exec alacritty"; "${mod}+Shift+q" = "kill";