Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Battery Widget) Unexpected symbol near { in rc.lua #10

Closed
ranguli opened this issue Mar 29, 2017 · 1 comment
Closed

(Battery Widget) Unexpected symbol near { in rc.lua #10

ranguli opened this issue Mar 29, 2017 · 1 comment

Comments

@ranguli
Copy link

ranguli commented Mar 29, 2017

Can we get the rc.lua examples to be copy-pastable? Disclaimer I have no clue about Lua syntax, so I (assuming the example snippet in battery-widget/README wasn't directly copy/pastable) have been trying to get this to work, and can't resolve the syntax. If you were curious, here's what I have.

require("battery")

s.mytasklist,
	{ -- This line give mes an 'unexpected symbol near { in rc.lua'
    	layout = wibox.layout.fixed.horizontal,
		battery_widget,
}

But it would be great if non-Lua inclined users could get it up and running faster. I should also clarify I'm on awm 3.5.6, so I'm going to try using the actual compatible version - but it looks like a Lua syntax error not an awm version-related issue.

@streetturtle
Copy link
Owner

streetturtle commented Mar 30, 2017

I've updated widgets recently to work with Awesome 4 - unfortunately it's not backward compatible with previous version of Awesome.
You can try this repo: https://github.com/streetturtle/AwesomeWM3#battery-widget but it's not so nice as for v.4 :) And In version 3 widgets are added following way:

local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(wibox.widget.systray())
right_layout:add(separator)
right_layout:add(lunchMenuWidget)
right_layout:add(separator)
right_layout:add(mouse_battery_icon)

Please let me know if something is unclear.
I'll update the docs to make it more clear.

Thanks!

@ranguli ranguli closed this as completed Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants