feat(waybar): add backlight module
This commit is contained in:
parent
28c07e522a
commit
d47a670907
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user