Skip to content

Commit

Permalink
Add back systray
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 26, 2023
1 parent 538e36c commit 13f565d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions home/qtile/src/core/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
QuickExit,
Separator,
SpotifyNowPlaying,
Systray,
TaskList,
Wakatime,
)


class Bar(bar.Bar):
instance_count: int = 0

widgets_checks = {
Battery: lambda _: os.uname().nodename == "Bacon",
}
Expand All @@ -46,6 +45,9 @@ class Bar(bar.Bar):
def __init__(self, id_):
self.id = id_

if self.id == 0:
self._widgets.insert(14, Systray)

super().__init__(
widgets=self._build_widgets(),
size=24,
Expand Down
2 changes: 2 additions & 0 deletions home/qtile/src/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
QuickExit,
Separator,
TaskList,
Systray
)

from .spotify import SpotifyNowPlaying
Expand All @@ -26,5 +27,6 @@
"Separator",
"SpotifyNowPlaying",
"TaskList",
"Systray",
"Wakatime",
)
5 changes: 5 additions & 0 deletions home/qtile/src/widgets/overides.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ def mk_overrides(cls, **conf):
foreground=Color.TEXT_LIGHT,
padding=8,
)

Systray = mk_overrides(
widget.Systray,
icon_size=12
)

0 comments on commit 13f565d

Please sign in to comment.