add kb layout

This commit is contained in:
zoe 2022-09-15 13:57:37 +02:00
parent 2ac148ca02
commit 6202536df7
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ autostart = [
"nm-applet",
# ["/usr/local/bin/picom", "--experimental-backend"],
["nitrogen", "--restore"],
["ibus-daemon" "--xim"],
]

View File

@ -66,6 +66,11 @@ def _get_powerline_arrow(direction: _PowerLineDirection, accent: _Accent, end=Fa
)
_keylayout = widget.KeyboardLayout(
**get_defaults(),
fmt="{}",
)
_net = widget.Net(
**get_defaults(),
background=my_globals.colors["accent-dark"],
@ -189,6 +194,7 @@ def _get_bar_contents(primary=False):
),
_window_name,
widget.Spacer(**get_defaults(), length=bar.STRETCH),
_keylayout,
_updates,
_get_powerline_arrow(
_PowerLineDirection.RIGHT,