Looking at the actual code for `cmd_hide_show_bar`, you'd loop through the left, right, bottom, and top attributes of a screen to detect whether a bar is present. See the command code here: https://github.com/qtile/qtile/blob/master/libqtile/core/manager.py#L1450-L1483
On Tuesday, September 28, 2021 at 1:15:14 PM UTC-6 [email protected] wrote: > Is it possible to get the status of the bar ? I already have keybindings > for toggling the bar but I'd like to add a binding that not only sets the > window to fullscreen but if the bar is showing then hide it too. At the > moment my keybinding for fullscreen toggles the bar and goes to fullscreen > , but this breaks if the bar was already toggled using mod+b for bar > toggle. So I really need to check if the bar is showing or not before > deciding how to act. > > Hope that made sense to someone other than myself ? ;) > > Thanks in advance > Justine > -- 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/ecaa35ee-ba01-457e-93ab-880d98abe964n%40googlegroups.com.
