diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-14 23:42:44 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-14 23:42:44 +0100 |
commit | a8b86caa5de2963ebe7996bcbc6a63bdfe43ff2f (patch) | |
tree | 18450c183a3d223b5ff4feda08e11767d87192c4 /.config/eww/eww.yuck | |
parent | 612cacfb8208cf69e854006869cbed7edff2d1ec (diff) |
eww: Display the current user
Diffstat (limited to '.config/eww/eww.yuck')
-rw-r--r-- | .config/eww/eww.yuck | 9 |
1 files changed, 8 insertions, 1 deletions
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 |