From a55b5ed3b82cca8af5ecbdce16d6c207e133c5b0 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 29 Sep 2023 09:38:26 +0200 Subject: [PATCH] Initial bar for work PC --- home-manager/modules/eww/config/eww.yuck | 30 +++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/home-manager/modules/eww/config/eww.yuck b/home-manager/modules/eww/config/eww.yuck index 78ef8a8..6578718 100644 --- a/home-manager/modules/eww/config/eww.yuck +++ b/home-manager/modules/eww/config/eww.yuck @@ -188,13 +188,14 @@ (defwidget title [] (label :text {wm-info.title})) -(defwidget left [] +(defwidget left [is-home] (box :orientation "h" :halign "start" :space-evenly false :spacing 5 (workspaces) - (ha-now-playing))) + (ha-now-playing + :visible is-home))) (defwidget right [] (box :orientation "h" @@ -216,7 +217,17 @@ :hexpand false :vexpand false (centerbox - (left) + (left :is-home true) + (title) + (end)))) + +(defwidget bar-work-left [] + (box :class "eww_bar" + :orientation "h" + :hexpand false + :vexpand false + (centerbox + (left :is-home false) (title) (end)))) @@ -236,3 +247,16 @@ :vexpand false :exclusive true (bar)) + +(defwindow bar-work + :geometry (geometry :x "0" + :y "0" + :width "100%" + :height "32px" + :anchor "top center") + :stacking "fg" + :monitor 0 + :exclusive true + :hexpand false + :vexpand false + (bar-work-left))