More tweaking of Notifier widget.
This commit is contained in:
parent
67ace8806d
commit
ef427db078
1 changed files with 9 additions and 3 deletions
|
@ -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(),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue