More tweaking of Notifier widget.

This commit is contained in:
Bartek Stalewski 2022-11-07 13:49:33 +01:00
parent 67ace8806d
commit ef427db078

View file

@ -110,6 +110,9 @@ widget_defaults = dict(
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
def yubikey_replace(text):
return text.replace('YubiKey is waiting for a touch', '\uf80a')
screens = [ screens = [
Screen( Screen(
top=bar.Bar( top=bar.Bar(
@ -132,9 +135,12 @@ screens = [
background_low='#0f1419', background_low='#0f1419',
background_urgent='#770000', background_urgent='#770000',
foreground='#000000', foreground='#000000',
foreground_low='#e6e1cf', # foreground_low='#e6e1cf',
foreground_urgent='#ffffff', # foreground_urgent='#ffffff',
foreground_low='#000000',
foreground_urgent='#000000',
font='RobotoMono Nerd Font Bold', font='RobotoMono Nerd Font Bold',
parse_text=yubikey_replace,
), ),
widget.GenPollCommand( widget.GenPollCommand(
background='#005577', background='#005577',
@ -159,7 +165,7 @@ screens = [
cmd="sb-battery", cmd="sb-battery",
), ),
widget.Clock( widget.Clock(
format='[%d] %H:%M:%S' format='[%d] %H:%M:%S',
), ),
widget.Systray(), widget.Systray(),
], ],