You are not logged in.

#1 2012-03-31 19:34:02

earsplit
Member
Registered: 2012-03-31
Posts: 187
Website

[SOLVED] Awesome WM Icons cut off / not displaying nice

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...

renderissue.png

They are supposed to look like this...
sm4tik_icons.png

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)


((( configs :: website )))

Offline

#2 2012-03-31 19:39:34

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: [SOLVED] Awesome WM Icons cut off / not displaying nice

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

#3 2012-03-31 19:56:47

earsplit
Member
Registered: 2012-03-31
Posts: 187
Website

Re: [SOLVED] Awesome WM Icons cut off / not displaying nice

Silly mistake. For some reason, the xdg files actually had inverted colors.

Simply added the -negate tag to convert.

Doh.  Thanks!


((( configs :: website )))

Offline

#4 2012-03-31 21:43:44

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: [SOLVED] Awesome WM Icons cut off / not displaying nice

You should upload thos icons... smile

Offline

Board footer

Powered by FluxBB