From f48c19734b5c2eedf11bf9a71fc22f36cc1cb608 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 25 Jul 2025 15:00:06 -0700 Subject: [PATCH] New backup 2025-07-25 15:00:06 --- .../.config/eww/modules/bar/window_name.yuck | 8 ++- .../.config/eww/modules/bar/workspaces.yuck | 58 ++++++++++--------- de/home/.config/eww/style/bar.scss | 20 ++++--- 3 files changed, 49 insertions(+), 37 deletions(-) diff --git a/de/home/.config/eww/modules/bar/window_name.yuck b/de/home/.config/eww/modules/bar/window_name.yuck index 9e9fb60..6512a46 100644 --- a/de/home/.config/eww/modules/bar/window_name.yuck +++ b/de/home/.config/eww/modules/bar/window_name.yuck @@ -2,5 +2,9 @@ :interval "60s" "scripts/bar/activewindow") (defwidget windowtitle [] - (label :class {active_window_name != "" ? "active_window" : ""} - :text {active_window_name})) + (box :class "bar-module" + :space-evenly false + (button :onclick 'sp-profiles next' + (label :text '${active_profile}')) + (label :class {active_window_name != "" ? "active_window" : ""} + :text {active_window_name}))) diff --git a/de/home/.config/eww/modules/bar/workspaces.yuck b/de/home/.config/eww/modules/bar/workspaces.yuck index f2806a7..b8c924d 100644 --- a/de/home/.config/eww/modules/bar/workspaces.yuck +++ b/de/home/.config/eww/modules/bar/workspaces.yuck @@ -5,37 +5,41 @@ (defvar wsreveal false) (defwidget workspaces [array] -(eventbox - :onhover "${EWW_CMD} update wsreveal=true" - :onhoverlost "${EWW_CMD} update wsreveal=false" - (box :class "workspaces" - :orientation "h" - :space-evenly false - :halign "start" +(box :class "bar-module" + :space-evenly false + (button :onclick 'sp-profiles next' + (label :text '${active_profile}')) + (eventbox + :onhover "${EWW_CMD} update wsreveal=true" + :onhoverlost "${EWW_CMD} update wsreveal=false" + (box :class "workspaces" + :orientation "h" + :space-evenly false + :halign "start" - (revealer - :reveal wsreveal - :transition "slideleft" - :duration "500ms" + (revealer + :reveal wsreveal + :transition "slideleft" + :duration "500ms" + (box + (for entry in array + (literal + :visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false} + :content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"})))) (box (for entry in array (literal - :visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false} - :content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"})))) - (box - (for entry in array - (literal - :visible {entry.focused ? true : false} - :content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"}))) - (revealer - :reveal wsreveal - :transition "slideright" - :duration "500ms" - (box - (for entry in array - (literal - :visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false} - :content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"}))))))) + :visible {entry.focused ? true : false} + :content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"}))) + (revealer + :reveal wsreveal + :transition "slideright" + :duration "500ms" + (box + (for entry in array + (literal + :visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false} + :content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))) ; (for entry in array ; {entry.focused ? (workspace :ws entry) : ""}))) diff --git a/de/home/.config/eww/style/bar.scss b/de/home/.config/eww/style/bar.scss index 2bfaeb0..d42f25f 100644 --- a/de/home/.config/eww/style/bar.scss +++ b/de/home/.config/eww/style/bar.scss @@ -11,7 +11,8 @@ // &>box:not(.workspaces), &>box.revealer-on-hover, &>button, - &>label { + &>label, + .bar-module { color: $bar-module-fg-color; background-color: $bar-bg-color; border-radius: $bar-module-border-radius; @@ -25,11 +26,11 @@ .workspaces { color: $bar-module-fg-color; - border-radius: $bar-module-border-radius; - margin: 0px 5px; +// border-radius: $bar-module-border-radius; +// margin: 0px 5px; // min-width: $bar-module-width; - border: 2px solid $bar-module-fg-color; - background-color: $bar-module-bg-color; +// border: 2px solid $bar-module-fg-color; +// background-color: $bar-module-bg-color; button { min-width: 35px; @@ -44,13 +45,14 @@ // text-shadow: $bar-module-active-shadow; color: $bar-module-fg-color; // background-color: $bar-module-active-fg-color; - border-radius: $bar-module-border-radius - 2; + border-radius: $bar-module-border-radius; box-shadow: 0 0 2px 1px $bar-module-fg-color; } &.right { // border-left: 1px solid $bar-module-fg-color; - border-right: 1px solid $bar-module-fg-color; - border-radius: $bar-module-border-radius - 2; +// border-right: 1px solid $bar-module-fg-color; + border-radius: $bar-module-border-radius - 1; + box-shadow: 0 0 2px 1px $bar-module-fg-color; } label { padding: 4px 6px; @@ -92,6 +94,8 @@ } &>box>button, &>box>label, + .bar-module>button, + .bar-module>label, .revealer-on-hover>widget>box>box>*, .reveal_children>* { padding: 0px 5px;