You are not logged in.

#1 2013-05-05 21:44:54

PPeter
Member
Registered: 2012-08-21
Posts: 19

Awesome WM: imagebox display problems

So just to start screwing around with what I can do, I was planning on making a simple widget which would just be an icon. I'm simply doing:

icon = widget ({ type = "imagebox" })
icon.image = image ("~/Documents/icon.png")

and then I just put it in the wibox.

Any help on this would be greatly appreciated.

Offline

#2 2013-05-06 07:45:26

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Awesome WM: imagebox display problems

PPeter wrote:
icon = widget ({ type = "imagebox" })
icon.image = image ("~/Documents/icon.png")

Where did you get this code? Not only is it for an outdated awesomewm version, the tilde won't be expanded to $HOME..

It should be something like this:

myicon = wibox.widget.imagebox()
myicon:set_image(os.getenv("HOME") .. "/Documents/icon.png")

For future reference:
http://awesome.naquadah.org/wiki/Awesome_3.4_to_3.5
/etc/xdg/awesome/rc.lua
https://awesome.naquadah.org/doc/api/

Last edited by tdy (2013-05-06 07:53:25)

Offline

Board footer

Powered by FluxBB