19 lines
634 B
Plaintext
19 lines
634 B
Plaintext
(include "widgets/notification-draw/notification-controls/notification-controls.yuck")
|
|
(include "widgets/notification-draw/notifications.yuck")
|
|
|
|
(defwidget notification_draw []
|
|
(revealer
|
|
:reveal notification_reveal
|
|
:transition "slideleft"
|
|
:duration "500ms"
|
|
(box :class "draw"
|
|
:orientation "v"
|
|
:space-evenly false
|
|
(box "Notifications")
|
|
(notification_controls)
|
|
{notification_history == "[]" ? "All Caught Up!" : "" }
|
|
(notifications :json notification_history))))
|
|
|
|
(defvar notification_reveal false)
|
|
(defpoll notification_history :interval "1s" "dunstctl history | jq '.data[]'")
|