dotfiles/eww/config/bar.yuck

88 lines
1.4 KiB
Plaintext

(defwidget notifications []
(eventbox :class "notifications"
""
)
)
(defwidget audio []
(eventbox :class "audio"
:onclick "eww open --toggle audio"
"󰕾"
))
(defwidget clipboard []
(eventbox :class "clipboard"
"󰅌"
)
)
(defwidget left []
(box :class "left"
:space-evenly "false"
:halign "start"
:valign "center"
:orientation "h"
(notifications)
(audio)
(clipboard)
)
)
(defwidget workspace-indicator []
". . . . . . . . . ."
)
(defwidget center []
(box :class "center"
:space-evenly "false"
:halign "center"
:valign "center"
:orientation "h"
(workspace-indicator)
)
)
(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"
(time)
(date)
)
)
(defwidget bar []
(box :class "bar"
:orientation "h"
(left)
(center)
(right)
)
)
(defwindow bar
:monitor 2
:geometry (geometry :x "0px"
:y "10px"
:width "1060px"
:height "48px"
:anchor "center top")
:stacking "fg"
:exclusive true
(bar)
)