From a6f889e847b99d9b58f68d59af63627c3444fa45 Mon Sep 17 00:00:00 2001 From: lucalabs-de Date: Mon, 28 Aug 2023 03:14:31 +0200 Subject: [PATCH] finish example config --- EXAMPLE.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/EXAMPLE.md b/EXAMPLE.md index d7d4ebb..aea88ce 100644 --- a/EXAMPLE.md +++ b/EXAMPLE.md @@ -65,6 +65,37 @@ timeout = 0 :xalign 0 :text "${end-summary}")' }))) + +(defwidget battery-widget + [end-id end-appname end-appicon end-summary end-body end-hints] + (eventbox + :onclick "end close ${end-id}" + (box + :class "end-default-notification-box" + :orientation "horizontal" + :space-evenly false + (label + :class "notification-text battery-icon" + :yalign 0.5 + :xalign 0.5 + :text "󰁺" + ) + (box + :orientation "vertical" + :hexpand true + (label + :class "notification-text notification-title" + :hexpand true + :yalign 0.5 + :xalign 0 + :text "Low Battery") + (label + :class "notification-text" + :vexpand true + :hexpand true + :yalign 0.5 + :xalign 0 + :text "${EWW_BATTERY["BAT0"]["capacity"]}% remaining"))))) ``` ##### eww.scss