I have this in my config to toggle the bar
# Toggle bars
Key([mod], "b",
lazy.hide_show_bar(position='all'),
desc="Toggle bars"
),
My config is here
https://github.com/justinesmithies/qtile-dotfiles/blob/master/.config/qtile/config.py
On Wed, 8 Dec 2021, 23:31 Luc Serre, <[email protected]> wrote:
> So, I'm looking for how to show/hide the bar with keyboard shortcut.
>
> I found "cmd_hide_show_bar()" from
> http://docs.qtile.org/en/latest/manual/ref/commands.html
>
> I made a Key entry:
> Key(["alt", "shift"], "h", cmd_hide_show_bar())
> (which doesn't work)
>
> My question is, now that I found the command, HOW do I go about figuring
> out how to use the command itself. I can see from looking at similar
> commands, that I'll need a "lazy.something" (which I don't understand) in
> there, but rather than just asking for the answer, my question is how do I
> go about researching how to implement this stuff (knowing if I need to
> import something first or prefix it with lazy something or whatever).
>
> Thanks
>
> --
> 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/0bfe4f9d-16aa-48d6-8a0f-07cef2de856en%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/0bfe4f9d-16aa-48d6-8a0f-07cef2de856en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CADrRWNbQOpRTZXmj%2BwyQq3SCzx6RqeS2RcnL-vffkbNfyPm5eA%40mail.gmail.com.