streetturtle / awesome-wm-widgets

Widgets for Awesome Window Manager
http://pavelmakhov.com/awesome-wm-widgets/
MIT License
2.15k stars 278 forks source link

configurable background color? #254

Open yeupou opened 3 years ago

yeupou commented 3 years ago

Hi,

I like your widgets a lot. However, to change background, I had to make dirty hacks.

Would you consider making this configurable? I understand that you made it so it works properly using the default background, but that does not work easily with theme that plays with these colors.

screen

Thanks, Regards,

streetturtle commented 3 years ago

Could you please clarify what exactly you want to change? The background of CPU or volume?

yeupou commented 3 years ago

Hi,

For the CPU, I changed it directly in the code

local cpugraph_widget = wibox.widget { max_value = 100, background_color = "#428bca",
....

For the volume, I found no way to set a color properly (maybe it should be done by including the widget in a box).

streetturtle commented 3 years ago

For the CPU widget I extracted background color as a parameter - there was a bug - the bottom margin was always black (like on your screenshot). So by default it's transparent.

For the volume widget I didn't get what exactly you want to change. The color of the area inside the circle?

yeupou commented 3 years ago

For the volume widget, I'd like to change the main background. Here the background is the main color of the bar, but with this theme, it should/could be another completely different color (like blue, orange, violet for the other widget).