You are not logged in.
Hi evrybody,
I'm totally new to Arch and I'm using AwesomeWM as window manager. So I'm trying to configure the wm and give it a bit of style (even though I don't think I'm pretty good with this, I try and take inspiration from other users configurations
)
My latest desire is to display widgets giving informations about my computer (using principally vicious for now) in "arrows" with different colors. As you can see in the picture, I'm almost there but there are vertical grey lines that ruins everything, I don't understand where they come from and how to make them disappear ![]()

What I do is that I create for each widget 1 textbox for the data, 1 imagebox for the icon (icons found on the web, but modified with gimp to colorize the background), and an other imagebox for the "arrow" shape (that I also draw with gimp). First I don't know if it's the right/best way to do this, but as I haven't found a lot of info I tried to do it by myself, so maybe somebody could tell me if I'm doing right. And secondly, if I do, I hope someone can help me to make these vertical lines disappear...
Here is a sample of the code I use for 1 widget
=> Creation of the widget
cpu = wibox.widget.textbox()
cpuicon = wibox.widget.imagebox()
cpuicon:set_image(beautiful.widget_cpu)
vicious.register(cpu, vicious.widgets.cpu, function(widget, args)
local all = args[1]
local style = "<span color='" .. beautiful.widgets_textbox_color .. "'"
if all > 75 then
style = "<span font-weight='bold' color='" .. beautiful.widgets_red_alert .. "'"
end
return (style .. "> %.f%% </span>"):format(all) end, 7)
cpu_wg = wibox.widget.background()
cpu_wg:set_bg(beautiful.widget_green_bg)
cpu_wg:set_widget(cpu)=> Insertion of the textbox, the icon and the arrow separator in the layout
local bottom_left_layout = wibox.layout.fixed.horizontal()
[...]
bottom_left_layout:add(ramicon)
bottom_left_layout:add(ram_wg)
bottom_left_layout:add(sep_ram_cpu)
bottom_left_layout:add(cpuicon)
bottom_left_layout:add(cpu_wg)
bottom_left_layout:add(sep_cpu_temp)
[...]Last edited by Sibou (2015-02-20 21:59:23)
Offline
Well actually it was just a problem of icons sizes.
I've modified each image to give them the same height as the wibox.layout height, and those vertical lines don't appear anymore. Yeepy !
Offline
Don't forget to mark the thread as solved by editing the title.
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline