diff options
author | rRedLim <[email protected]> | 2024-12-20 02:21:09 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-20 00:21:09 +0100 |
commit | d16c856074531b9fb867b8922be370bcfc749614 (patch) | |
tree | 08ee70023bf18a6dc39f312269c0a4e63ff0b7e0 /examples/py/simple-bar/widget/Bar.py | |
parent | 23083cdec69853bc8e480807a5f93b03df340183 (diff) |
chore: simple-bar filter special workspaces (#168)
Diffstat (limited to 'examples/py/simple-bar/widget/Bar.py')
-rw-r--r-- | examples/py/simple-bar/widget/Bar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/py/simple-bar/widget/Bar.py b/examples/py/simple-bar/widget/Bar.py index ca02dd6..3c5c3f8 100644 --- a/examples/py/simple-bar/widget/Bar.py +++ b/examples/py/simple-bar/widget/Bar.py @@ -32,7 +32,8 @@ class Workspaces(Gtk.Box): child.destroy() for ws in hypr.get_workspaces(): - self.add(self.button(ws)) + if not (ws.id >= -99 and ws.id <= -2): # filter out special workspaces + self.add(self.button(ws)) def button(self, ws): hypr = Hyprland.get_default() |