format code

This commit is contained in:
zoe 2022-09-02 12:02:59 +02:00
parent aacce21e14
commit 27aa42b816
2 changed files with 6 additions and 5 deletions

View File

@ -21,10 +21,10 @@ def get_floating():
def get_layouts():
return [
columns.Columns(
**default_layout_theme,
**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),

View File

@ -61,7 +61,7 @@ def _get_powerline_arrow(direction: _PowerLineDirection, accent: _Accent, end=Fa
fontsize=22,
padding=0,
markup=False,
max_chars = 1
max_chars=1,
)
@ -145,10 +145,10 @@ _clock = widget.Clock(
_updates = widget.CheckUpdates(
**get_defaults(),
update_interval = 3600,
update_interval=3600,
distro="Debian",
display_format="{updates} updates",
no_update_string= os.uname()[2] + "" + os.getlogin() + "@" + os.uname()[1]
no_update_string=os.uname()[2] + "" + os.getlogin() + "@" + os.uname()[1],
)
_volume = widget.Volume(
@ -173,6 +173,7 @@ _mpris = widget.Mpris2(
],
)
def _get_bar_contents(primary=False):
l = [
_get_powerline_arrow(_PowerLineDirection.LEFT, _Accent.A),