Replace WindowName with TaskList

This commit is contained in:
Andreas Zweili 2023-09-07 20:14:02 +02:00
parent 21ceeadf01
commit 92f24d6ed0
1 changed files with 26 additions and 36 deletions

View File

@ -163,7 +163,9 @@ def top_bar_widgets():
),
widget.Sep(padding=5),
widget.Prompt(name="section_prompt"),
widget.WindowName(),
widget.TaskList(
border="268bd2", font="sans", highlight_method="border", icon_size=20
),
widget.Sep(padding=5),
widget.DF(fmt="🗄️ {}", visible_on_warn=False),
widget.Sep(padding=5),
@ -202,48 +204,36 @@ def top_bar_widgets():
return widgets
secondary_bar = bar.Bar(
[
widget.GroupBox(
highlight_method="line",
highlight_color=["002b36", "268bd2"],
inactive="657b83",
),
widget.Sep(padding=5),
widget.TaskList(
border="268bd2", font="sans", highlight_method="border", icon_size=20
),
widget.Sep(padding=5),
widget.Volume(emoji=True),
widget.Sep(padding=5),
widget.Clock(format="%Y-%m-%d %a %H:%M"),
],
36,
background="#00000080",
)
screens = [
Screen(
top=bar.Bar(
top_bar_widgets(),
30,
background="#00000080",
),
),
Screen(
top=bar.Bar(
[
widget.GroupBox(),
widget.Sep(padding=5),
widget.WindowName(),
widget.Sep(padding=5),
widget.CurrentLayout(),
widget.Sep(padding=5),
widget.Volume(),
widget.Sep(padding=5),
widget.Clock(format="%Y-%m-%d %a %H:%M"),
],
30,
background="#00000080",
),
),
Screen(
top=bar.Bar(
[
widget.GroupBox(),
widget.Sep(padding=5),
widget.WindowName(),
widget.Sep(padding=5),
widget.CurrentLayout(),
widget.Sep(padding=5),
widget.Volume(),
widget.Sep(padding=5),
widget.Clock(format="%Y-%m-%d %a %H:%M"),
],
30,
36,
background="#00000080",
),
),
Screen(top=secondary_bar),
Screen(top=secondary_bar),
]
# Drag floating layouts.