Replace light with brightnessctl, due to deprecation
This commit is contained in:
parent
b087cf4085
commit
9ddb651997
|
@ -64,12 +64,10 @@
|
||||||
# Screenshots
|
# Screenshots
|
||||||
|
|
||||||
# Display and keyboard brightness
|
# Display and keyboard brightness
|
||||||
"${primeMod}, equal, exec, light -A 5"
|
"${primeMod}, equal, exec, brightnessctl s +5%"
|
||||||
"${primeMod}, minus, exec, light -U 5"
|
"${primeMod}, minus, exec, brightnessctl s 5%-"
|
||||||
"${primeMod} Shift, equal, exec, light -A 1"
|
"${primeMod} Shift, equal, exec, brightnessctl s +1%"
|
||||||
"${primeMod} Shift, minus, exec, light -U 1"
|
"${primeMod} Shift, minus, exec, brightnessctl s 1%-"
|
||||||
",XF86KbdBrightnessUp, exec, light -s sysfs/leds/smc::kbd_backlight -A 5"
|
|
||||||
",XF86KbdBrightnessDown, exec, light -s sysfs/leds/smc::kbd_backlight -U 5"
|
|
||||||
|
|
||||||
## Window manager
|
## Window manager
|
||||||
"${primeMod}, q, killactive,"
|
"${primeMod}, q, killactive,"
|
||||||
|
|
|
@ -61,12 +61,10 @@
|
||||||
${secMod}+Ctrl+F { screenshot-window; }
|
${secMod}+Ctrl+F { screenshot-window; }
|
||||||
|
|
||||||
// Display and keyboard brightness
|
// Display and keyboard brightness
|
||||||
${primeMod}+equal { spawn "sh" "-c" "light -A 5"; }
|
${primeMod}+equal { spawn "sh" "-c" "brightnessctl s +5%"; }
|
||||||
${primeMod}+minus { spawn "sh" "-c" "light -U 5"; }
|
${primeMod}+minus { spawn "sh" "-c" "brightnessctl s 5%-"; }
|
||||||
${primeMod}+Shift+equal { spawn "sh" "-c" "light -A 1"; }
|
${primeMod}+Shift+equal { spawn "sh" "-c" "brightnessctl s +1%"; }
|
||||||
${primeMod}+Shift+minus { spawn "sh" "-c" "light -U 1"; }
|
${primeMod}+Shift+minus { spawn "sh" "-c" "brightnessctl s 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"; }
|
|
||||||
|
|
||||||
//// Window manager
|
//// Window manager
|
||||||
${primeMod}+q { close-window; }
|
${primeMod}+q { close-window; }
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
brightnessctl
|
||||||
clipman
|
clipman
|
||||||
libnotify
|
libnotify
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
|
|
@ -64,12 +64,10 @@
|
||||||
"${secMod}+Shift+f" = ''exec shot-sway --screen'';
|
"${secMod}+Shift+f" = ''exec shot-sway --screen'';
|
||||||
|
|
||||||
# Display and keyboard brightness
|
# Display and keyboard brightness
|
||||||
"${primeMod}+equal" = ''exec light -A 5'';
|
"${primeMod}+equal" = ''exec brightnessctl s +5%'';
|
||||||
"${primeMod}+minus" = ''exec light -U 5'';
|
"${primeMod}+minus" = ''exec brightnessctl s 5%-'';
|
||||||
"${primeMod}+Shift+equal" = ''exec light -A 1'';
|
"${primeMod}+Shift+equal" = ''exec brightnessctl s +1%'';
|
||||||
"${primeMod}+Shift+minus" = ''exec light -U 1'';
|
"${primeMod}+Shift+minus" = ''exec brightnessctl s 1%-'';
|
||||||
"XF86KbdBrightnessUp" = ''exec light -s sysfs/leds/smc::kbd_backlight -A 5'';
|
|
||||||
"XF86KbdBrightnessDown" = ''exec light -s sysfs/leds/smc::kbd_backlight -U 5'';
|
|
||||||
|
|
||||||
## Window manager
|
## Window manager
|
||||||
"${primeMod}+q" = ''kill'';
|
"${primeMod}+q" = ''kill'';
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
{
|
|
||||||
config = lib.mkIf config.system.desktop.enable {
|
|
||||||
programs = {
|
|
||||||
light.enable = true;
|
|
||||||
kbdlight.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./backlights
|
|
||||||
./dconf
|
./dconf
|
||||||
./desktops
|
./desktops
|
||||||
./gaming
|
./gaming
|
||||||
|
|
Loading…
Reference in a new issue