backlight
This commit is contained in:
parent
c51078e515
commit
b775657b1e
3 changed files with 13 additions and 0 deletions
|
@ -103,6 +103,10 @@ window#waybar.floating #window {
|
||||||
color: @sapphire;
|
color: @sapphire;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: @pink;
|
color: @pink;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,9 @@ in {
|
||||||
bindel = [ # "bind held & locked"
|
bindel = [ # "bind held & locked"
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 10%+"
|
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 10%+"
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @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"
|
bindl = [ # "bind locked"
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
|
|
|
@ -49,6 +49,7 @@ in {
|
||||||
orientation = "inherit";
|
orientation = "inherit";
|
||||||
modules = [
|
modules = [
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
|
"backlight"
|
||||||
#"network"
|
#"network"
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
|
@ -169,6 +170,11 @@ in {
|
||||||
on-click = "${lib.getExe pkgs.pavucontrol}";
|
on-click = "${lib.getExe pkgs.pavucontrol}";
|
||||||
ignored-sinks = ["Easy Effects Sink"];
|
ignored-sinks = ["Easy Effects Sink"];
|
||||||
};
|
};
|
||||||
|
backlight = {
|
||||||
|
format = "{icon} {percent}%";
|
||||||
|
format-icons = ["" ""];
|
||||||
|
scroll-step = 1;
|
||||||
|
};
|
||||||
cpu = {
|
cpu = {
|
||||||
interval = 4;
|
interval = 4;
|
||||||
format = " {usage}% {avg_frequency}GHz";
|
format = " {usage}% {avg_frequency}GHz";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue