From c7c8108bc4f7602c673a94e4dacd8a93aae56f5a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 3 Oct 2024 13:55:23 +0200 Subject: [PATCH] home/programs/niri: bind brightness keys --- home/programs/niri/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/home/programs/niri/default.nix b/home/programs/niri/default.nix index b91f1d4..5c60181 100644 --- a/home/programs/niri/default.nix +++ b/home/programs/niri/default.nix @@ -1,6 +1,4 @@ { - self, - inputs, config, lib, pkgs, @@ -8,10 +6,8 @@ }: let appLauncher = lib.getExe pkgs.fuzzel; terminal = lib.getExe pkgs.foot; - schemeData = inputs.basix.schemeData.base16.${config.theme.scheme}; + # schemeData = inputs.basix.schemeData.base16.${config.theme.scheme}; in { - services.mako = {enable = true;}; - programs.niri = { settings = { environment."NIXOS_OZONE_WL" = "1"; @@ -155,6 +151,14 @@ in { action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"]; allow-when-locked = true; }; + "XF86MonBrightnessUp" = { + action.spawn = ["brillo" "-q" "-u 300000" "-A 5"]; + allow-when-locked = true; + }; + "XF86MonBrightnessDown" = { + action.spawn = ["brillo" "-q" "-u 300000" "-U 5"]; + allow-when-locked = true; + }; }; }; };