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,
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;
};
};
};
};