Skip to content

Commit

Permalink
finish example config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucalabs-de committed Aug 28, 2023
1 parent c42abf3 commit a6f889e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6f889e

Please sign in to comment.