summaryrefslogtreecommitdiff
path: root/examples/py/simple-bar/widget/Bar.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py/simple-bar/widget/Bar.py')
-rw-r--r--examples/py/simple-bar/widget/Bar.py3
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()