You are not logged in.

#1 2012-06-29 21:20:13

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Awesome WM: can't get vicious to work

I am migrating to Awesome WM.

I've tried different ways to use vicious with no success.

Relevant lines in rc.lua

require("vicious")
...
...
datewidget = widget({ type = "imagebox"})
vicious.register(datewidget, vicious.widgets.date, "%b %d, %R", 60)
...
...
mywibox[s].widgets = {
        {
            archicon,
            mytaglist[s],
            mypromptbox[s],
            layout = awful.widget.layout.horizontal.leftright
        },
        datewidget,
        mylayoutbox[s],
        s == 1 and mysystray or nil,
        mytasklist[s],
        layout = awful.widget.layout.horizontal.rightleft
    }

This causes Awesome to fall back in default config.

Offline

#2 2012-06-29 22:22:33

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Awesome WM: can't get vicious to work

Did you try running awesome -k to check for syntax errors?

Offline

#3 2012-06-29 22:27:30

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: Awesome WM: can't get vicious to work

Err, vicious.widgets.date returns text - you should have 'datewidget = widget({ type = "textbox"})

Offline

#4 2012-06-29 23:02:47

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: Awesome WM: can't get vicious to work

theGunslinger wrote:

Did you try running awesome -k to check for syntax errors?

I'll try and post the results, thanks.

Offline

#5 2012-06-29 23:11:22

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: Awesome WM: can't get vicious to work

ZekeSulastin wrote:

Err, vicious.widgets.date returns text - you should have 'datewidget = widget({ type = "textbox"})

Sorry indeed it was "textbox" I misstyped.

For example I have:

uptimewidget = widget({ type = "textbox" })
vicious.register(uptimewidget, vicious.widgets.uptime, "$2:$3", 61)

I tried awesome -k and it says I have no error in syntax. The only way I have for awesome to read my rc.lua fine is comment those lines.

Offline

#6 2012-06-29 23:56:06

ecmel
Member
Registered: 2012-02-13
Posts: 29
Website

Re: Awesome WM: can't get vicious to work

Have you tried sudo pacman -S vicious ?

Offline

#7 2012-06-30 01:09:04

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: Awesome WM: can't get vicious to work

I am migrating to Awesome WM.
I've tried different ways to use vicious with no success.
require("vicious")

You installed vicious from git, not a stable release. It was ported to Lua 5.2 a few days ago, and you want to do as the README says:
local vicious = require("vicious")


You need to install an RTFM interface.

Offline

#8 2012-06-30 04:40:02

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: Awesome WM: can't get vicious to work

anrxc wrote:

I am migrating to Awesome WM.
I've tried different ways to use vicious with no success.
require("vicious")

You installed vicious from git, not a stable release. It was ported to Lua 5.2 a few days ago, and you want to do as the README says:
local vicious = require("vicious")

Thank you, that solved the problem.

Offline

Board footer

Powered by FluxBB