summaryrefslogtreecommitdiff
path: root/.config/eww/eww.yuck
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/eww.yuck')
-rw-r--r--.config/eww/eww.yuck9
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