backlight

This commit is contained in:
Reid 2024-05-17 15:36:24 -07:00
parent c51078e515
commit b775657b1e
3 changed files with 13 additions and 0 deletions

View file

@ -49,6 +49,9 @@ in {
bindel = [ # "bind held & locked"
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 10%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%-"
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s +5%"
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -c backlight s 5%-"
];
bindl = [ # "bind locked"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"

View file

@ -49,6 +49,7 @@ in {
orientation = "inherit";
modules = [
"pulseaudio"
"backlight"
#"network"
"cpu"
"memory"
@ -169,6 +170,11 @@ in {
on-click = "${lib.getExe pkgs.pavucontrol}";
ignored-sinks = ["Easy Effects Sink"];
};
backlight = {
format = "{icon} {percent}%";
format-icons = ["" ""];
scroll-step = 1;
};
cpu = {
interval = 4;
format = " {usage}% {avg_frequency}GHz";