From 9f71386f7fa8e57ea2455cfbcbe54573409e0b38 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Wed, 27 Mar 2024 07:04:40 +0100 Subject: [PATCH] align yuck --- common/eww/config/eww.yuck | 20 +++++++++++--------- common/eww/config/widgets/resources/eww.yuck | 20 ++++++++++---------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/common/eww/config/eww.yuck b/common/eww/config/eww.yuck index be74b1d..8adf41d 100644 --- a/common/eww/config/eww.yuck +++ b/common/eww/config/eww.yuck @@ -5,19 +5,21 @@ (include "./widgets/resources/eww.yuck") (defwindow top-bar - :monitor 0 - :geometry (geometry :x "0%" - :y "10px" - :width "98.8%" - :height "30px" - :anchor "top center") - :stacking "fg" - :exclusive true + :monitor 0 + :geometry (geometry :x "0%" + :y "10px" + :width "98.8%" + :height "30px" + :anchor "top center") + :stacking "fg" + :exclusive true (centerbox :class "bar" (left) (center) - (right))) + (right) + ) +) (defwidget left [] (box diff --git a/common/eww/config/widgets/resources/eww.yuck b/common/eww/config/widgets/resources/eww.yuck index b647f2a..306588f 100644 --- a/common/eww/config/widgets/resources/eww.yuck +++ b/common/eww/config/widgets/resources/eww.yuck @@ -4,22 +4,22 @@ (defvar GB 1024000000) (defvar MB 1024000) - + ; DATE + TIME (defpoll time :interval "5s" - :initial "" - `date +%H:%M`) + :initial "" +`date +%H:%M`) (defpoll date :interval "60s" - :initial "" - `date "+%A | %m-%d-%+4Y"`) + :initial "" +`date "+%A | %m-%d-%+4Y"`) (defwidget datetime [] (eventbox :tooltip date (label :class "text time" - :text time) + :text time) )) ; CPU @@ -61,7 +61,7 @@ :tooltip hostname (label :text status-icon - :class "network_icon"))) + :class "network_icon"))) ; BLUETOOTH (defwidget bluetooth [] @@ -70,7 +70,7 @@ :onclick "blueman-manager &" (label :text "" - :class "bluetooth_icon"))) + :class "bluetooth_icon"))) ; VOLUME @@ -87,6 +87,6 @@ :spacing "3" (label :class "volume_text" - :text "${volume_percent <= 33 ? "" : volume_percent <= 66 ? "" : ""} ${volume_percent}%") - ))) + :text "${volume_percent <= 33 ? "" : volume_percent <= 66 ? "" : ""} ${volume_percent}%") + ))) ; TODO add mic widget \ No newline at end of file