2022-10-16 22:41:38 +02:00
|
|
|
(defwidget notifications []
|
|
|
|
(eventbox :class "notifications"
|
|
|
|
""
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget audio []
|
|
|
|
(eventbox :class "audio"
|
|
|
|
:onclick "eww open --toggle audio"
|
|
|
|
"墳"
|
|
|
|
))
|
|
|
|
|
|
|
|
(defwidget clipboard []
|
|
|
|
(eventbox :class "clipboard"
|
|
|
|
""
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2023-04-23 18:55:30 +02:00
|
|
|
(defwidget color-picker []
|
|
|
|
(eventbox :class "color-picker"
|
|
|
|
:onclick "hyprctl dispatch exec \"hyprpicker --no-fancy | wl-copy\""
|
|
|
|
""
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2023-04-23 18:55:30 +02:00
|
|
|
(defwidget left []
|
|
|
|
(box :class "left"
|
|
|
|
:halign "start"
|
|
|
|
:orientation "h"
|
|
|
|
(notifications) ; TODO: notifications - Opens notification menu
|
|
|
|
(audio)
|
|
|
|
(clipboard); TODO: Clipboard - Opens clipboard menu (clipboard history click to make current)
|
|
|
|
;; TODO: Bluetooth something
|
|
|
|
(color-picker)
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget center []
|
2023-04-23 18:55:30 +02:00
|
|
|
(box :class "center"
|
2022-10-16 22:41:38 +02:00
|
|
|
:space-evenly "false"
|
|
|
|
:valign "center"
|
2023-04-23 18:55:30 +02:00
|
|
|
:orientation "h"
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget time []
|
|
|
|
(eventbox :class "time"
|
|
|
|
time
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget date []
|
|
|
|
(eventbox :class "date"
|
2023-04-23 18:55:30 +02:00
|
|
|
"${year}-${date}"
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2023-04-23 18:55:30 +02:00
|
|
|
(defwidget right []
|
|
|
|
(box :class "right"
|
2022-10-16 22:41:38 +02:00
|
|
|
:space-evenly "false"
|
2023-04-23 18:55:30 +02:00
|
|
|
:halign "end"
|
|
|
|
:valign "center"
|
2022-10-16 22:41:38 +02:00
|
|
|
:orientation "v"
|
2023-04-23 18:55:30 +02:00
|
|
|
; TODO: Redo this thing and make it open calendar view
|
2022-10-16 22:41:38 +02:00
|
|
|
(time) ; TODO: Time - Open timer/stopwatch menu?
|
2023-04-23 18:55:30 +02:00
|
|
|
(date) ; TODO: Year month day - Open calendar/upcoming events list (source these from some daemon?)
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwidget bar []
|
|
|
|
(box :class "bar"
|
2023-04-23 18:55:30 +02:00
|
|
|
:orientation "h"
|
|
|
|
(left)
|
2022-10-16 22:41:38 +02:00
|
|
|
(center)
|
2023-04-23 18:55:30 +02:00
|
|
|
(right)
|
2022-10-16 22:41:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defwindow bar
|
|
|
|
:monitor 2
|
|
|
|
:geometry (geometry :x "0px"
|
2023-04-23 18:55:30 +02:00
|
|
|
:y "10px"
|
|
|
|
:width "1060px"
|
|
|
|
:height "50px"
|
|
|
|
:anchor "center top")
|
2022-10-16 22:41:38 +02:00
|
|
|
:stacking "fg"
|
|
|
|
:exclusive true
|
|
|
|
(bar)
|
|
|
|
)
|