Hi there,

Welcome to qtile. Glad to hear you're enjoying it.

I'm not 100% sure about what you're trying to achieve but I'll have a shot 
at answering your questions.

I think the key bit to understand is that "qtile-cmd" (which is now "qtile 
cmd-obj") is a means to communicate with qtile from a separate process e.g. 
a shell script. Your config file is different as it's loaded by the qtile 
process so functions in that file can directly access the running qtile 
object.

To display your keybindings using qtile cmd-obj, you would need to run 
"qtile cmd-obj -o root -f display_kb" however, it's going to look pretty 
ugly.

You could create a separate python file which has this:

from libqtile.command.client import InteractiveCommandClient
i = InteractiveCommandClient()
kb = i.display_kb()
for line in kb.split("\n"):
    print(line)

It's pretty basic but it should work.

If you have more questions, please feel free to ask here.

On Saturday, 21 August 2021 at 20:21:32 UTC+1 [email protected] wrote:

> Hi from a newbie.
>
> I have been using qtile for a week or so and like it so much that I have 
> it now on all my computers!
> I have trouble remembering all the key bindings and found one way 
> involving using qtile-cmd. But that command does not exist and It does not 
> exist in any of my qtile installs. I guess that involves importing some 
> library at the beginning of config.py  so I used the docs and tried to 
> import:
>
> from libqtile.command.client import CommandClient c = CommandClient() 
> print(c.call("status")()) from libqtile.command.client import 
> InteractiveCommandClient c = InteractiveCommandClient() print(c.status())
>
> for some reason qtile will not let me do that. I can't find any syntax 
> errors so what I am doing wrong and why is not qtile-cmd default?
>
> Very thankful for a hint and I apologize if my questions is on "too low 
> level"!
>
> womp
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/9dabceca-9bad-4973-b57f-5ee073f685ean%40googlegroups.com.

Reply via email to