home/programs/niri: bind brightness keys
This commit is contained in:
parent
fcbad25a2a
commit
c7c8108bc4
1 changed files with 9 additions and 5 deletions
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue