New filters on the Home Feed, take a look!
view details
2
hide_show_bar("all") gives error warning and doesn't work
Post Flair (click to view more posts with a particular flair)
Post Body

Instead of opening an issue on github for this small one line problem I thought it would be better for me to post it here on reddit.

If you have a bar only on one side, say bottom, and rest are Gaps, the hide_show_bar() function's default option "all", doesn't work and throws an error warning, Gap object has no attribute is_show(), since the bars on other sides are bar.Gap objects.

#in libqtile/core/manager.py function cmd_hide_show_bar

for bar in [screen.left, screen.right, screen.top, screen.bottom]:
#if bar:        #the original condition
if isinstance(bar, libqtile.bar.Bar):
    if is_show is None:
        is_show = not bar.is_show()
    bar.show(is_show)

Instead of using the if bar: condition, checking if the bar is an actual bar or gap resolves the issue.
It also did not work for the bottom bar, even tho it was a bar.Bar object for some reason. I didn't bother checking it, since just changing the check condition fixed it.

I don't know if this is meant to be as is for bars on all sides only, but I think this way, you wouldn't have to toggle each bar one at a time either.

Author
Account Strength
100%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
11,017
Link Karma
6,035
Comment Karma
4,947
Profile updated: 3 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago