feat(niri): brightnessctl

This commit is contained in:
2025-08-09 20:14:31 +08:00
parent 16f11262ff
commit e1e3e96626
2 changed files with 40 additions and 3 deletions

View File

@@ -175,7 +175,7 @@
"play-pause"
];
};
"Mod+XF86AudioRaiseVolume" = {
"Super+XF86AudioRaiseVolume" = {
allow-when-locked = true;
action.spawn = [
"playerctl"
@@ -184,7 +184,7 @@
"next"
];
};
"Mod+XF86AudioLowerVolume" = {
"Super+XF86AudioLowerVolume" = {
allow-when-locked = true;
action.spawn = [
"playerctl"
@@ -194,6 +194,39 @@
];
};
"XF86MonBrightnessUp" = {
allow-when-locked = true;
action.spawn = [
"brightnessctl"
"set"
"+5%"
];
};
"XF86MonBrightnessDown" = {
allow-when-locked = true;
action.spawn = [
"brightnessctl"
"set"
"5%-"
];
};
"Alt+XF86AudioRaiseVolume" = {
allow-when-locked = true;
action.spawn = [
"brightnessctl"
"set"
"+5%"
];
};
"Alt+XF86AudioLowerVolume" = {
allow-when-locked = true;
action.spawn = [
"brightnessctl"
"set"
"5%-"
];
};
"Mod+Q".action = close-window;
"Mod+Left".action = focus-column-left;

View File

@@ -61,12 +61,16 @@ in
};
my.home = {
home.packages = with pkgs; [
xwayland-satellite-unstable
wlr-randr
wl-clipboard
cliphist
playerctl
brightnessctl
swaynotificationcenter
nemo-with-extensions
xwayland-satellite-unstable
];
programs.wofi.enable = true;
xdg.configFile."wofi" = {