summaryrefslogtreecommitdiff
path: root/.config/eww/eww.yuck
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-14 23:34:03 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-14 23:34:03 +0200
commit45d1380289c577f1a04c8117ff36ff374d82023c (patch)
tree73e204cc05515a9a0974a3ab607a59b5edc1bd95 /.config/eww/eww.yuck
parentc18c3c1df4c7b3ca721f7ee6278ffddff93dc95a (diff)
eww: Add a widget for email
Diffstat (limited to '.config/eww/eww.yuck')
-rw-r--r--.config/eww/eww.yuck7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck
index 667c717..49a0a11 100644
--- a/.config/eww/eww.yuck
+++ b/.config/eww/eww.yuck
@@ -17,6 +17,9 @@
(deflisten keymap
`stdbuf -oL scripts/keymap-listener`)
+(deflisten emails
+ `stdbuf -oL scripts/email-listener`)
+
;; Pollers
(defpoll battery :initial '{"icon":"","percentage":""}' :interval "1s"
`scripts/battery`)
@@ -65,6 +68,7 @@
(box :halign "end"
:class "end"
:space-evenly false
+ (emails)
(keymap)
(wireless)
(brightness)
@@ -98,6 +102,9 @@
(defwidget battery []
(pair :icon {battery.icon} :text {battery.percentage}))
+(defwidget emails []
+ (pair :icon "" :text emails))
+
(defwidget pair [icon text]
(box :width 70
:space-evenly false