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

View File

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