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" "play-pause"
]; ];
}; };
"Mod+XF86AudioRaiseVolume" = { "Super+XF86AudioRaiseVolume" = {
allow-when-locked = true; allow-when-locked = true;
action.spawn = [ action.spawn = [
"playerctl" "playerctl"
@@ -184,7 +184,7 @@
"next" "next"
]; ];
}; };
"Mod+XF86AudioLowerVolume" = { "Super+XF86AudioLowerVolume" = {
allow-when-locked = true; allow-when-locked = true;
action.spawn = [ action.spawn = [
"playerctl" "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+Q".action = close-window;
"Mod+Left".action = focus-column-left; "Mod+Left".action = focus-column-left;

View File

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