dotfiles/eww/bar.yuck

90 lines
1.8 KiB
Plaintext
Raw Normal View History

(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\""
""
)
)
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)
)
)
(defwidget center []
2023-04-23 18:55:30 +02:00
(box :class "center"
:space-evenly "false"
:valign "center"
2023-04-23 18:55:30 +02:00
:orientation "h"
)
)
(defwidget time []
(eventbox :class "time"
time
)
)
(defwidget date []
(eventbox :class "date"
2023-04-23 18:55:30 +02:00
"${year}-${date}"
)
)
2023-04-23 18:55:30 +02:00
(defwidget right []
(box :class "right"
:space-evenly "false"
2023-04-23 18:55:30 +02:00
:halign "end"
:valign "center"
:orientation "v"
2023-04-23 18:55:30 +02:00
; TODO: Redo this thing and make it open calendar view
(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?)
)
)
(defwidget bar []
(box :class "bar"
2023-04-23 18:55:30 +02:00
:orientation "h"
(left)
(center)
2023-04-23 18:55:30 +02:00
(right)
)
)
(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")
:stacking "fg"
:exclusive true
(bar)
)