(defwidget notifications [] (eventbox :class "notifications" "" ) ) (defwidget audio [] (eventbox :class "audio" :onclick "eww open --toggle audio" "󰕾" )) (defwidget clipboard [] (eventbox :class "clipboard" "󰅌" ) ) (defwidget color-picker [] (eventbox :class "color-picker" :onclick "hyprctl dispatch exec \"hyprpicker --no-fancy | wl-copy\"" "" ) ) (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) ) ) (defwidget center [] (box :class "center" :space-evenly "false" :valign "center" :orientation "h" ) ) (defwidget time [] (eventbox :class "time" time ) ) (defwidget date [] (eventbox :class "date" "${year}-${date}" ) ) (defwidget right [] (box :class "right" :space-evenly "false" :halign "end" :valign "center" :orientation "v" ; TODO: Redo this thing and make it open calendar view (time) ; TODO: Time - Open timer/stopwatch menu? (date) ; TODO: Year month day - Open calendar/upcoming events list (source these from some daemon?) ) ) (defwidget bar [] (box :class "bar" :orientation "h" (left) (center) (right) ) ) (defwindow bar :monitor 2 :geometry (geometry :x "0px" :y "10px" :width "1060px" :height "50px" :anchor "center top") :stacking "fg" :exclusive true (bar) )