You are not logged in.

#1 2013-10-12 17:58:42

hughitt1
Member
Registered: 2010-02-18
Posts: 82
Website

[Solved] AwesomeWM interactive debugging?

Hi all,

I was wondering if anyone knows of a way to try out different Awesome settings interactively from within a session?

The standard way to test settings seems to be to modify rc.lua and then either restart Awesome, or run a new sessions in Xephyr.

Does anyone know if it's possible to open a Lua console that is linked to the current awesome session? It would be nice to be able to inspect things like "awful.tag.getnmaster()" from within the console.'

Any ideas?

Last edited by hughitt1 (2013-10-13 13:44:00)

Offline

#2 2013-10-13 12:34:48

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: [Solved] AwesomeWM interactive debugging?

I think you are looking for awesome-client. By default the variable awful is a local in rc.lua, if you want to use awful in awesome-client, you'll have to make a global.

Last edited by matyilona200 (2013-10-13 12:44:22)

Offline

#3 2013-10-13 13:43:41

hughitt1
Member
Registered: 2010-02-18
Posts: 82
Website

Re: [Solved] AwesomeWM interactive debugging?

Ah okay, I had tried using awesome-client before, but could not figure out how to access properties from the current session. Making naughty and awful both global variables, I was able to run:

awesome# naughty.notify({text=awful.tag.getnmaster()})

I would be nice if awesome-client had some more of the features in a typical lua console (e.g. print() and variable inspection), but this is a pretty helpful step.

Thanks for the suggestion!

Offline

Board footer

Powered by FluxBB