Switch from GenPollText to GenPollCommand widget.

This commit is contained in:
Bartek Stalewski 2022-11-06 16:00:39 +01:00
parent 188e577c7b
commit 58e39e049a

View file

@ -127,34 +127,34 @@ screens = [
record_history=False, record_history=False,
), ),
widget.Spacer(), widget.Spacer(),
widget.GenPollText( widget.GenPollCommand(
background='#e8b923', background='#e8b923',
foreground='#000000', foreground='#000000',
font='RobotoMono Nerd Font Bold', font='RobotoMono Nerd Font Bold',
update_interval=0.5, update_interval=0.5,
func=lambda: subprocess.check_output("sb-yubikey").decode(), cmd="sb-yubikey",
), ),
widget.GenPollText( widget.GenPollCommand(
background='#005577', background='#005577',
foreground='#ffffff', foreground='#ffffff',
update_interval=1, update_interval=1,
func=lambda: subprocess.check_output("sb-mail").decode(), cmd="sb-mail",
), ),
widget.GenPollText( widget.GenPollCommand(
background='#770000', background='#770000',
foreground='#ffffff', foreground='#ffffff',
update_interval=1, update_interval=1,
func=lambda: subprocess.check_output("sb-network").decode(), cmd="sb-network",
), ),
widget.GenPollText( widget.GenPollCommand(
background='#770000', background='#770000',
foreground='#ffffff', foreground='#ffffff',
update_interval=1, update_interval=1,
func=lambda: subprocess.check_output("sb-volume").decode(), cmd="sb-volume",
), ),
widget.GenPollText( widget.GenPollCommand(
update_interval=1, update_interval=1,
func=lambda: subprocess.check_output("sb-battery").decode(), cmd="sb-battery",
), ),
widget.Clock( widget.Clock(
format='[%d] %H:%M:%S' format='[%d] %H:%M:%S'