feat(waybar): add backlight module

This commit is contained in:
Price Hiller 2023-08-22 03:08:06 -05:00
parent 28c07e522a
commit d47a670907
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 12 additions and 1 deletions

View File

@ -20,6 +20,7 @@
"modules-right": [
"custom/pacman-update",
"tray",
"backlight",
"network",
"clock",
"custom/lock"
@ -98,6 +99,10 @@
"interval": "once",
"on-click": "swaylock"
},
"backlight": {
"format": "󰃠 {percent}%",
"scroll-step": 5.0
},
"network": {
"on-click-right": "~/.config/waybar/scripts/set-rfkill.bash",
"interval": 1,

View File

@ -70,6 +70,7 @@ tooltip label,
#custom-pacman-update,
#taskbar,
#tray,
#backlight,
#tray menu,
#custom-lock {
background-color: #16161d;
@ -249,7 +250,7 @@ tooltip {
);
background-size: 400% 400%;
/* PERF: Animations in gtk css cause incredible CPU loads, wtf?!
* Disabling this shit for now, not worth the CPU cost. */
* Disabling this shit for now, not worth the CPU cost. */
/* animation: gradient_roll 30s ease-in-out infinite; */
}
@ -272,6 +273,11 @@ tooltip {
-gtk-icon-shadow: none;
}
/* Backlight */
#backlight {
color: #DCA561;
}
/* Network */
#network {
color: #a3d4d5;