From a8b86caa5de2963ebe7996bcbc6a63bdfe43ff2f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 14 Feb 2024 23:42:44 +0100 Subject: eww: Display the current user --- .config/eww/eww.yuck | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.config/eww') diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck index 285f7eb..0d80265 100644 --- a/.config/eww/eww.yuck +++ b/.config/eww/eww.yuck @@ -21,6 +21,9 @@ `stdbuf -oL scripts/email-listener`) ;; Pollers +(defpoll user :interval "69h" + `whoami | sed 's/.*/\\u&/'`) + (defpoll battery :initial '{"icon":"","percentage":""}' :interval "1s" `scripts/battery`) @@ -56,7 +59,8 @@ (wireless) (brightness) (volume) - (battery))) + (battery) + (user))) (defwidget workspaces [] (box :class "workspaces" @@ -87,6 +91,9 @@ (defwidget emails [] (pair :icon "" :text emails)) +(defwidget user [] + (pair :icon "" :text user)) + (defwidget pair [icon text] (box :width 70 :space-evenly false -- cgit v1.2.3