From 58e39e049aa308f0596e6442650fa9883e732a59 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sun, 6 Nov 2022 16:00:39 +0100 Subject: [PATCH] Switch from GenPollText to GenPollCommand widget. --- _desktop/qtile/config.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py index 699ebb8..581ca2a 100644 --- a/_desktop/qtile/config.py +++ b/_desktop/qtile/config.py @@ -127,34 +127,34 @@ screens = [ record_history=False, ), widget.Spacer(), - widget.GenPollText( + widget.GenPollCommand( background='#e8b923', foreground='#000000', font='RobotoMono Nerd Font Bold', update_interval=0.5, - func=lambda: subprocess.check_output("sb-yubikey").decode(), + cmd="sb-yubikey", ), - widget.GenPollText( + widget.GenPollCommand( background='#005577', foreground='#ffffff', update_interval=1, - func=lambda: subprocess.check_output("sb-mail").decode(), + cmd="sb-mail", ), - widget.GenPollText( + widget.GenPollCommand( background='#770000', foreground='#ffffff', update_interval=1, - func=lambda: subprocess.check_output("sb-network").decode(), + cmd="sb-network", ), - widget.GenPollText( + widget.GenPollCommand( background='#770000', foreground='#ffffff', update_interval=1, - func=lambda: subprocess.check_output("sb-volume").decode(), + cmd="sb-volume", ), - widget.GenPollText( + widget.GenPollCommand( update_interval=1, - func=lambda: subprocess.check_output("sb-battery").decode(), + cmd="sb-battery", ), widget.Clock( format='[%d] %H:%M:%S'