nixos/common/eww/config/eww.yuck

54 lines
936 B
Text
Raw Normal View History

2024-02-16 13:59:46 +01:00
; inspired by https://github.com/saimoomedits/eww-widgets/tree/main
(include "./widgets/workspaces/eww.yuck")
(include "./widgets/window-title/eww.yuck")
(include "./widgets/resources/eww.yuck")
(defwindow top-bar
2024-03-27 07:04:40 +01:00
:monitor 0
:geometry (geometry :x "0%"
:y "10px"
:width "98.8%"
:height "30px"
:anchor "top center")
:stacking "fg"
:exclusive true
2024-02-16 13:59:46 +01:00
(centerbox
:class "bar"
(left)
(center)
2024-03-27 07:04:40 +01:00
(right)
)
)
2024-02-16 13:59:46 +01:00
(defwidget left []
(box
:space-evenly false
:halign "start"
:class "container"
(label :text "" :class "nixos-icon")
(workspaces)
))
(defwidget center []
(box
:space-evenly false
:halign "center"
:class "container"
:visible {strlength(window) != 0}
(windowtitle)
))
(defwidget right []
(box
:space-evenly false
:halign "end"
:class "container"
(volume)
(cpu)
(mem)
(network)
(bluetooth)
(datetime)
))