Replace light with brightnessctl, due to deprecation

This commit is contained in:
Jimbo 2024-12-20 13:35:20 -05:00
parent b087cf4085
commit 9ddb651997
6 changed files with 13 additions and 28 deletions

View file

@ -64,12 +64,10 @@
# Screenshots
# Display and keyboard brightness
"${primeMod}, equal, exec, light -A 5"
"${primeMod}, minus, exec, light -U 5"
"${primeMod} Shift, equal, exec, light -A 1"
"${primeMod} Shift, minus, exec, light -U 1"
",XF86KbdBrightnessUp, exec, light -s sysfs/leds/smc::kbd_backlight -A 5"
",XF86KbdBrightnessDown, exec, light -s sysfs/leds/smc::kbd_backlight -U 5"
"${primeMod}, equal, exec, brightnessctl s +5%"
"${primeMod}, minus, exec, brightnessctl s 5%-"
"${primeMod} Shift, equal, exec, brightnessctl s +1%"
"${primeMod} Shift, minus, exec, brightnessctl s 1%-"
## Window manager
"${primeMod}, q, killactive,"

View file

@ -61,12 +61,10 @@
${secMod}+Ctrl+F { screenshot-window; }
// Display and keyboard brightness
${primeMod}+equal { spawn "sh" "-c" "light -A 5"; }
${primeMod}+minus { spawn "sh" "-c" "light -U 5"; }
${primeMod}+Shift+equal { spawn "sh" "-c" "light -A 1"; }
${primeMod}+Shift+minus { spawn "sh" "-c" "light -U 1"; }
XF86KbdBrightnessUp { spawn "sh" "-c" "light -s sysfs/leds/smc::kbd_backlight -A 5"; }
XF86KbdBrightnessDown { spawn "sh" "-c" "light -s sysfs/leds/smc::kbd_backlight -U 5"; }
${primeMod}+equal { spawn "sh" "-c" "brightnessctl s +5%"; }
${primeMod}+minus { spawn "sh" "-c" "brightnessctl s 5%-"; }
${primeMod}+Shift+equal { spawn "sh" "-c" "brightnessctl s +1%"; }
${primeMod}+Shift+minus { spawn "sh" "-c" "brightnessctl s 1%-"; }
//// Window manager
${primeMod}+q { close-window; }

View file

@ -11,6 +11,7 @@
];
home.packages = with pkgs; [
brightnessctl
clipman
libnotify
wl-clipboard

View file

@ -64,12 +64,10 @@
"${secMod}+Shift+f" = ''exec shot-sway --screen'';
# Display and keyboard brightness
"${primeMod}+equal" = ''exec light -A 5'';
"${primeMod}+minus" = ''exec light -U 5'';
"${primeMod}+Shift+equal" = ''exec light -A 1'';
"${primeMod}+Shift+minus" = ''exec light -U 1'';
"XF86KbdBrightnessUp" = ''exec light -s sysfs/leds/smc::kbd_backlight -A 5'';
"XF86KbdBrightnessDown" = ''exec light -s sysfs/leds/smc::kbd_backlight -U 5'';
"${primeMod}+equal" = ''exec brightnessctl s +5%'';
"${primeMod}+minus" = ''exec brightnessctl s 5%-'';
"${primeMod}+Shift+equal" = ''exec brightnessctl s +1%'';
"${primeMod}+Shift+minus" = ''exec brightnessctl s 1%-'';
## Window manager
"${primeMod}+q" = ''kill'';

View file

@ -1,9 +0,0 @@
{ lib, config, ... }:
{
config = lib.mkIf config.system.desktop.enable {
programs = {
light.enable = true;
kbdlight.enable = true;
};
};
}

View file

@ -1,7 +1,6 @@
{ ... }:
{
imports = [
./backlights
./dconf
./desktops
./gaming