You are not logged in.

#1 2016-12-01 21:51:32

quiddi
Member
Registered: 2016-12-01
Posts: 12

Awesome Widgets with Vicious

Hi guys,

I'm running a Arch with an Awesome 3.5.9 and i'm trying to include some
widgets. But nothing is gonna be working.
What I did:
1. Installed Awesome and Vicious with pacman
2. logged in as a normal user not as root, I created my rc.lua in my
home folder with cp /etc/xdg/awesome/rc.lua ~/.config/awesome/
3. at the top of my rc.lua I added

 vicious = require("vicious")

4. If I start easy I have now to add for a date textbox:

-- Initialize widget
datewidget = wibox.widget.textbox()
-- Register widget
vicious.register(datewidget, vicious.widgets.date, "%b %d, %R", 
60)

But then what? Where do I have to add it in my rc.lua exactly? There are
some Tutorials saying that I have to tell awesome where it has tu put
it, which color,... But they are not giving details about it.
I got my informations from here:
https://awesomewm.org/wiki/Vicious

Offline

#2 2016-12-01 23:18:41

monodromy
Member
Registered: 2014-02-08
Posts: 62

Re: Awesome Widgets with Vicious

If you look in the default rc.lua, there's a textclock widget already coded. Put your widget code there. Further down, the widgets are placed in the "wibox" (widget box, I guess).

The awesome wiki also has a page with some sample configuration files that you can essentially copy: https://awesomewm.org/wiki/User_Configuration_Files.

Offline

#3 2016-12-03 12:54:41

quiddi
Member
Registered: 2016-12-01
Posts: 12

Re: Awesome Widgets with Vicious

If you look in the default rc.lua, there's a textclock widget already coded. Put your widget code there.

Should I place it there, or replace it with the default textclock?

Offline

Board footer

Powered by FluxBB