You are not logged in.
Today I have been trying out awesome-wm, when I finished configuring my window rules I got this error:
W: awesome: luaA_dofunction:78: error while running function
stack traceback:
[C]: in function 'ipairs'
/usr/share/awesome/lib/awful/rules.lua:138: in function 'match_any'
/usr/share/awesome/lib/awful/rules.lua:156: in function </usr/share/awesome/lib/awful/rules.lua:152>
error: /usr/share/awesome/lib/awful/rules.lua:138: bad argument #1 to 'ipairs' (table expected, got string)I am testing this within Xephyr thus:
$ Xephyr :1 -ac -br -noreset -screen 1152x720 &
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.luahere is the window rules section from my rc.lua:
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule_any = { class = "Gmrun", "Xfce4-notifyd", "Lxapperance", "Xfce4-appfinder" },
properties = { floating = true } },
-- music players
{ rule_any = { class = "Gmpc", "Audacious", "Vlc", "Mplayer", "Mplayer2" },
properties = { tag = tags[1][1] } },
{ rule_any = { class = "Audacious", "Vlc", "Mplayer", "Mplayer2" },
properties = { floating = true } },
--mail
{ rule = { name = ".::MUTT::." },
properties = { tag = tags[1][2] } },
{ rule_any = { instance = "gmail", "crx_pjkljhegncpnkpknbcohdijeoejaedia" },
properties = { tag = tags[1][2] } },
--instant messengers
{ rule_any = { name = ".::Finch::.", "Buddy List", "(Home Timeline)" },
properties = { tag = tags[1][3] } },
{ rule = { class = "Pidgin" },
properties = { tag = tags[1][3] } },
-- browsers
{ rule_any = { class = "Firefox", "Aurora", "Chromium", "Luakit", "Opera" },
properties = { tag = tags[1][4] } },
{ rule = { instance = "Dialog", "Extension", "Abp", "Febe" },
properties = { floating = true } },
--social network web apps
{ rule_any = { instance = "crx_boeajhmfdjldchidhphikilcgdacljfm", "facebook", "crx_hbdpomandigafcibbmofojjchbcdagbl", "tweetdeck", "crx_jfkogbicoohcjbjlppcaeiggjomjkkem", "twitter", "crx_dlppkpafhbajpcmmoheippocdidnckmm", "googleplus", "pinterest.com" },
properties = { tag = tags[1][5] } },
--RSS readers webapps & cli
{ rule = { name = ".::RSS::." },
properties = { tag = tags[1][6] } },
{ rule_any = { instance = "feedly", "theoldreader", "crx_hipbfijinpcgfogaopmgehiegacbhmob" },
properties = { tag = tags[1][6] } },
--terminals
{ rule = { class = "Terminator" },
properties = { tag = tags[1][7] } },
{ rule = { name = "Terminator Preferences" },
properties = { floating = true } },
--file managers
{ rule_any = { class = "Thunar", "Spacefm" },
properties = { tag = tags[1][7] } },
}
-- }}}can any of you confirm if my syntax is wrong & if not what could cause the error as I have tried to google it but receive weird results which have nothing to do with awesome-wm
thanks in advance
Last edited by t0m5k1 (2013-06-07 16:12:58)
Offline
ok it appears i misunderstood the wiki
this:
{ rule_any = { class = {"MPlayer", "pinentry", "Gimp"} },
properties = { floating = true } },made me assume that any "grouping" of rules required the rule_any command
sorry for the noise, hope this helps others
Offline