You are not logged in.
Hey all,
I got awesome up and running. Must say it feels nice coming from scrotwm (or now spectrwm).
But I'm having a weird rendering issue. My icons in the status bar are being cut off and re sized strangely. They are rendering perfectly in both feh and chromium...

They are supposed to look like this...![]()
I used convert from imagemagick to convert them from 8px by 8px to 20px by 20px as per my wibox height...
for x in *.xbm; do convert -bordercolor transparent -border 40x40 -gravity center -crop 20x20+0+0 "${x}" "${x%.*}.png"; done Below is a snippet of the relevant code...
Any ideas?
rc.lua
cpuwidget = widget({ type = "textbox" })
vicious.register(cpuwidget, vicious.widgets.cpu, '<span color="'..theme.color7..'"> </span>$1% ', 2)
cpuimg = widget({ type = "imagebox", align = "middle" })
cpuimg.image = image(beautiful.widget_cpu)
cpuimg.resize = false
memwidget = widget({ type = "textbox" })
vicious.register(memwidget, vicious.widgets.mem, '<span color="'..theme.color7..'"> </span>$1% ($2/$3)', 2)
memimg = widget({ type = "imagebox" })
memimg.image = image(beautiful.widget_mem)
memimg.resize = false
bats = widget({ type = "textbox" })
vicious.register(bats, vicious.widgets.bat, '<span color="'..theme.color7..'"> </span>$2%', 60, "BAT0")
batsimg = widget({ type = "imagebox" })
batsimg.image = image(beautiful.widget_batsfull)
batsimg.resize = false
..........
-- Create the wibox
mywibox[s] = awful.wibox({
position = "top",
height = "20",
screen = s
})
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mytaglist[s],
spacer,
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mytextclock, separator,
volwidget, separator,
cpuwidget, cpuimg, separator,
memwidget, memimg, separator,
bats, batsimg, separator,
s == 1 and mysystray or nil,
layout = awful.widget.layout.horizontal.rightleft
}
end
-- }}}and my theme.lua
theme.widget_batsfull = "/home/bill/.config/awesome/themes/default/icons/bat_full_02.png"
theme.widget_cpu = "/home/bill/.config/awesome/themes/default/icons/cpu.png"
theme.widget_mem = "/home/bill/.config/awesome/themes/default/icons/mem.png"i used the following to convert the
Last edited by earsplit (2012-03-31 20:35:15)
Offline
Your icons are either still beign scaled by awesome or imagemagick got it wrong. Resize one original icon in Gimp put it in the wibox and compare to others.
You need to install an RTFM interface.
Offline