✨ feat(eww): a lot of stuff fixed, prettier active window and media widgets
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
(deflisten json_notifications :initial "{ \"text\": 0, \"class\": [\"notification\"] }"
|
||||
`swaync-client -swb`)
|
||||
|
||||
(defwidget notifications []
|
||||
(box :class "notifications"
|
||||
(button :onclick "swaync-client -t"
|
||||
:class { json_notifications.class =~ "cc-open" ? 'open' : '' }
|
||||
{ json_notifications.alt == "dnd-notification" ? " " : '${ json_notifications.text == 0 ? " " : " " }' })
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user