summaryrefslogtreecommitdiff
path: root/examples/py/simple-bar/widget/Bar.py
diff options
context:
space:
mode:
authorrRedLim <[email protected]>2024-12-20 02:21:09 +0300
committerGitHub <[email protected]>2024-12-20 00:21:09 +0100
commitd16c856074531b9fb867b8922be370bcfc749614 (patch)
tree08ee70023bf18a6dc39f312269c0a4e63ff0b7e0 /examples/py/simple-bar/widget/Bar.py
parent23083cdec69853bc8e480807a5f93b03df340183 (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.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()