2022-10-22 23:54:44 +03:00
|
|
|
(defwindow notifications
|
2022-10-04 02:08:44 +03:00
|
|
|
:geometry
|
|
|
|
(geometry
|
|
|
|
:x "0px"
|
|
|
|
:y "0px"
|
|
|
|
:width "0px"
|
|
|
|
:height "0px"
|
2022-10-22 23:54:44 +03:00
|
|
|
:anchor "right top")
|
2022-10-04 02:08:44 +03:00
|
|
|
:stacking "fg"
|
|
|
|
:monitor "0"
|
2022-10-22 23:54:44 +03:00
|
|
|
(notifications))
|
2022-10-04 02:08:44 +03:00
|
|
|
|
2022-10-22 23:54:44 +03:00
|
|
|
(defwidget notifications []
|
2022-10-04 02:08:44 +03:00
|
|
|
(box
|
2022-10-22 23:54:44 +03:00
|
|
|
:class "notifications-box"
|
2022-10-04 02:08:44 +03:00
|
|
|
:orientation "v"
|
2022-10-22 23:54:44 +03:00
|
|
|
:space-evenly "false"
|
2022-10-04 02:08:44 +03:00
|
|
|
(box
|
|
|
|
:class "notification-header"
|
|
|
|
(label
|
|
|
|
:class "notification-label"
|
|
|
|
:halign "start"
|
|
|
|
:text "Notifications")
|
|
|
|
(box
|
|
|
|
:halign "end"
|
2022-10-22 23:54:44 +03:00
|
|
|
:space-evenly "false"
|
|
|
|
:spacing 10
|
2022-10-04 02:08:44 +03:00
|
|
|
(button
|
|
|
|
:class "notification-action"
|
|
|
|
:tooltip "Refresh"
|
2022-10-22 23:54:44 +03:00
|
|
|
:onclick "dunstctl history > $XDG_CACHE_HOME/dunst-history.json" "")
|
2022-10-04 02:08:44 +03:00
|
|
|
(button
|
|
|
|
:class "notification-action"
|
|
|
|
:tooltip "Pause/Resume Notifications"
|
|
|
|
:onclick "scripts/notifications toggle" {notif_icons.toggle_icon})
|
|
|
|
(button
|
|
|
|
:class "notification-action"
|
|
|
|
:tooltip "Clear Notifications"
|
2022-10-22 23:54:44 +03:00
|
|
|
:onclick "scripts/notifications clear" ""))) ;
|
2022-10-04 02:08:44 +03:00
|
|
|
(scroll
|
|
|
|
:vscroll "true"
|
|
|
|
:hscroll "false"
|
2022-10-22 23:54:44 +03:00
|
|
|
:height 500
|
|
|
|
:width 300
|
2022-10-04 02:08:44 +03:00
|
|
|
(literal
|
2022-10-22 23:54:44 +03:00
|
|
|
:content notifications))))
|