You are not logged in.
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
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