On 10/09/2014 10:05 PM, Elv1313 . wrote:
Actually, it is possible with Awesome directly.

--You have to create a wibox first:
local mydesktop_wibox = wibox({})

--then set a geometry:
mydesktop_wibox.x = 100
mydesktop_wibox.y = 100
mydesktop_wibox.width = 100
mydesktop_wibox.height = 100

mydesktop_wibox.below = true
mydesktop_wibox.visible = true

--then make it transparent:
mydesktop_wibox:set_bg("#00000000") --transparent

-- and set your widget
mydesktop_wibox:set_widget(your_widget)


Looks promising and _almost_ works, need a bit more help. Added this code at the very bottom of my ~/.config/awesome/rc.lua. It draws a single pixel at (100, 100) of correct color. I tried:

mydesktop_wibox:set_bg("#FF0000FF")
or:
mydesktop_wibox:set_bg("#FF000080")

local myib = wibox.widget.textclock(...) -- red pixel
or:
local myib = wibox.widget.imagebox("/home/me/images/avatar100x100.jpg", false) -- blue pixel from my avatar

-- Tried to add this, got single pixel again.
-- But when I made a mistake first time and wrote "mylib.fit(100, 100)" (dot instead of colon), -- then awesome showed me a error and falled back to default config with different wallpaper, -- but 100x100 area kept a piece of my own wallpaper with red pixel at top-left corner.
myib:fit(100, 100)

mydesktop_wibox:set_widget(myib)


--
Best regards,
Dmitry Grigoriev


--
To unsubscribe, send mail to [email protected].

Reply via email to