nix-configs/modules/desktop/home/eww/configDir/bottomBar/bottomBar.yuck

78 lines
1.6 KiB
Text
Raw Normal View History

2024-09-10 22:07:27 +02:00
(include "bottomBar/workspaces.yuck")
2024-09-11 02:09:08 +02:00
(include "bottomBar/traveldings.yuck")
2024-09-10 22:07:27 +02:00
2024-09-02 19:07:19 +02:00
(defwindow bottomBar
:monitor 0
:stacking "fg"
:wm-ignore true
:exclusive true
:geometry (geometry
:width "100%"
2025-01-01 03:15:13 +01:00
:height "33px"
2024-09-02 19:07:19 +02:00
:anchor "bottom center")
(bottomBar))
(defwidget bottomBar []
(overlay
:class "bottomBar"
2024-10-03 19:30:56 +02:00
(transform
:translate-y "1.5px"
(centerbox
(box
:halign "start"
(workspaceWidget)
)
(box
:halign "center"
(traveldings)
)
(box
:halign "end"
; (label :text "${iceData.speed}km/h")
2025-03-27 01:57:44 +01:00
(mullvadThing)
2024-10-03 19:30:56 +02:00
)
2024-09-02 19:07:19 +02:00
)
)
(box
:class "lesbianFlag"
:height 1
( flagEl :flipped true :color "#D52D00")
( flagEl :flipped true :color "#EF7627")
( flagEl :flipped true :color "#FF9A56")
( flagEl :flipped true :color "#FFFFFF")
( flagEl :flipped true :color "#D162A4")
( flagEl :flipped true :color "#B55690")
( flagEl :flipped true :color "#A30262")
)
)
)
2024-09-26 19:15:58 +02:00
2025-03-27 01:57:44 +01:00
(deflisten mullvad
:initial "{\"state\":\"init\"}"
`mullvad status -j listen`
)
(defwidget mullvadThing []
(box
:class "container"
(button
:height 16
:width 16
:class "mullvad-state-${mullvad.state}"
)
)
)
2024-10-03 19:31:13 +02:00
(defwidget iceTacho []
(box
:class "iceTacho"
:tooltip "Tz${iceTachoData.tzn} (BR ${iceTachoData.br})"
(label :text "${iceTachoData.speed} km/h")
)
)
(deflisten iceTachoData
:initial "null"
{ "~/.config/eww/scripts/iceTacho.nu" }
2024-09-26 19:15:58 +02:00
)