You are not logged in.

#1 2010-10-14 05:11:04

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Awesome Widget Icons

So I decided to try out Awesome, since I have heard so much good about it.  So far it's pretty cool, most of the default bindings are similar to XMonad, and overall I like it.  I have run into a little problem though. No matter what size I make the icons awesome continually scales them to make them the same size as the bar.  Is there some way to stop this behavior, or otherwise control it?

Revelent parts of my rc.lua:

-- Define Images
dnicon = widget({ type = "imagebox"})
upicon = widget({ type = "imagebox" })
dnicon.image = image(beautiful.widget_net)
upicon.image = image(beautiful.widget_netup)

and theme.lua:

theme.widget_net             = "/home/ishikawa/.icons/icojoy/icons_9x9/png/blue/normal/003_54.png"
theme.widget_netup           = "/home/ishikawa/.icons/icojoy/icons_9x9/png/blue/normal/003_56.png"

As you can see, I am using 9x9 icons, which show up really small in both Thunar and PCmanFM, yet fill out my entire top bar (which is 12 pixels, as I set it in my rc.lua).  I even tried resizing the icons to 4x4, and they looked the exact same.

Any help?  Sorry if this is out there somewhere.  Searching for the terms "Awesome" and "icons" yields not so great results.  smile

Last edited by lifeafter2am (2010-10-14 06:35:34)


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#2 2010-10-14 09:20:15

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Awesome Widget Icons

try setting a width to them:

dnicon = widget ({ type = "textbox" })
dnicon.bg_image = image(beautiful.widget_net)
dnicon.bg_align = "middle"
dnicon.width = 8

upicon = widget ({ type = "textbox" })
upicon.bg_image = image(beautiful.widget_netup)
upicon.bg_align = "middle"
upicon.width = 8

Offline

#3 2010-10-14 14:49:56

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Awesome Widget Icons

JokerBoy wrote:

try setting a width to them:

dnicon = widget ({ type = "textbox" })
dnicon.bg_image = image(beautiful.widget_net)
dnicon.bg_align = "middle"
dnicon.width = 8

upicon = widget ({ type = "textbox" })
upicon.bg_image = image(beautiful.widget_netup)
upicon.bg_align = "middle"
upicon.width = 8

Unfortunately no change ..... I even tried changing the width to height and using both ... all this with a 8 and a 4.

Just to confirm that these icons are stretching I set the bar width to 18 and sure enough the icons scaled up with it.  Even tried different icons.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

Board footer

Powered by FluxBB