make bar nicer
This commit is contained in:
parent
f8b43ea3af
commit
8146c16d35
|
@ -7,6 +7,10 @@ colors = {
|
|||
"on-accent-dark": "#282a36",
|
||||
"accent-light": "#50fa7b",
|
||||
"on-accent-light": "#282a36",
|
||||
"accent-light-2": "#8be9fd",
|
||||
"on-accent-light-2": "#282a36",
|
||||
"accent-dark-2": "#6272a4",
|
||||
"on-accent-dark-2": "#f8f8f2",
|
||||
}
|
||||
|
||||
border_width = 2
|
||||
|
|
|
@ -6,7 +6,8 @@ default_layout_theme = {
|
|||
"margin": my_globals.gap_width,
|
||||
"border_normal": my_globals.colors["accent-dark"],
|
||||
"border_focus": my_globals.colors["accent-light"],
|
||||
"border_focus_stack": my_globals.colors["accent-light"],
|
||||
"border_focus_stack": my_globals.colors["accent-light-2"],
|
||||
"border_normal_stack": my_globals.colors["accent-dark-2"],
|
||||
}
|
||||
|
||||
|
||||
|
@ -19,7 +20,11 @@ def get_floating():
|
|||
|
||||
def get_layouts():
|
||||
return [
|
||||
columns.Columns(**default_layout_theme),
|
||||
columns.Columns(
|
||||
**default_layout_theme,
|
||||
border_on_single=True,
|
||||
margin_on_single=my_globals.gap_width,
|
||||
),
|
||||
max.Max(**default_layout_theme),
|
||||
# Try more layouts by unleashing below layouts.
|
||||
# layout.Stack(num_stacks=2),
|
||||
|
|
|
@ -106,7 +106,7 @@ _weather = widget.OpenWeather(
|
|||
|
||||
_tray = widget.Systray(
|
||||
**get_defaults(),
|
||||
background=_Accent.A.value,
|
||||
background=_Accent.B.value,
|
||||
foreground=my_globals.colors["on-bg-light"],
|
||||
)
|
||||
|
||||
|
@ -170,9 +170,15 @@ _mpris = widget.Mpris2(
|
|||
],
|
||||
)
|
||||
|
||||
_chord = widget.Chord(
|
||||
background = _Accent.A,
|
||||
foreground = my_globals.colors["on-accent-dark"],
|
||||
)
|
||||
|
||||
|
||||
def _get_bar_contents(primary=False):
|
||||
l = [
|
||||
_clock,
|
||||
_get_powerline_arrow(_PowerLineDirection.LEFT, _Accent.A),
|
||||
_get_current_layout(),
|
||||
_groups,
|
||||
|
@ -192,16 +198,10 @@ def _get_bar_contents(primary=False):
|
|||
_volume,
|
||||
_mpris,
|
||||
_get_powerline_arrow(_PowerLineDirection.RIGHT, _Accent.A),
|
||||
_clock,
|
||||
_weather,
|
||||
]
|
||||
if primary:
|
||||
l.insert(0, _tray)
|
||||
l.insert(2, _tray)
|
||||
else:
|
||||
l = [
|
||||
_net,
|
||||
_netgraph,
|
||||
_cpu,
|
||||
_cpu_graph,
|
||||
] + l
|
||||
l = [_net, _netgraph, _cpu, _cpu_graph] + l
|
||||
return l
|
||||
|
|
Loading…
Reference in New Issue