home/programs/niri: bind brightness keys

This commit is contained in:
Anthony Rodriguez 2024-10-03 13:55:23 +02:00
parent fcbad25a2a
commit c7c8108bc4
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,6 +1,4 @@
{ {
self,
inputs,
config, config,
lib, lib,
pkgs, pkgs,
@ -8,10 +6,8 @@
}: let }: let
appLauncher = lib.getExe pkgs.fuzzel; appLauncher = lib.getExe pkgs.fuzzel;
terminal = lib.getExe pkgs.foot; terminal = lib.getExe pkgs.foot;
schemeData = inputs.basix.schemeData.base16.${config.theme.scheme}; # schemeData = inputs.basix.schemeData.base16.${config.theme.scheme};
in { in {
services.mako = {enable = true;};
programs.niri = { programs.niri = {
settings = { settings = {
environment."NIXOS_OZONE_WL" = "1"; environment."NIXOS_OZONE_WL" = "1";
@ -155,6 +151,14 @@ in {
action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"]; action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
allow-when-locked = true; 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;
};
}; };
}; };
}; };