From 53b18a5de56262b8b568a7d2834e2be1fd59f9ca Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Mon, 1 Sep 2025 12:00:01 -0700 Subject: [PATCH] New backup 2025-09-01 12:00:01 --- .../.config/eww/modules/bar/workspaces.yuck | 38 ++----------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/de/home/.config/eww/modules/bar/workspaces.yuck b/de/home/.config/eww/modules/bar/workspaces.yuck index efdbb37..e1eebb6 100644 --- a/de/home/.config/eww/modules/bar/workspaces.yuck +++ b/de/home/.config/eww/modules/bar/workspaces.yuck @@ -5,22 +5,6 @@ (defvar wsreveal false) (defwidget workspaces [array] -;(box :class "bar-module" -; :space-evenly false -; (button :class "profile" -; :onclick 'sp-profiles next' -; (label :text '${active_profile}')) -; (box :class "chevron" -; :width 32 -; (transform :rotate 12.5 -; :translate-x '-50%' -; :translate-y '50%' -; :transform-origin-x '50%' -; :transform-origin-y '50%' -; :scale-x '100%' -; :scale-y '100%' -; (box :width 32))) -; (windowtitle) (eventbox :onhover "${EWW_CMD} update wsreveal=true" :onhoverlost "${EWW_CMD} update wsreveal=false" @@ -44,7 +28,7 @@ (for entry in array (literal :visible {entry.focused ? true : false} - :content {entry.focused ? '(workspace :ws entry :side '"center ${jq(array, '.[0].num)'}"')' : "(box :visible false)"}))) + :content {entry.focused ? "(workspace :ws entry :side 'center' :lastws ${jq(array,'.[-1].num')})" : "(box :visible false)"}))) (revealer :class "ws-right" :reveal wsreveal @@ -55,26 +39,10 @@ (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) : ""}))) -; (for ws in {} -; (box -; (literal -; :visible {(entry.num < jq(array, '.. | select(.type?) | select(.focused==true).num', 'r')) ? true : false} -; :content {(entry.num < jq(array, '.. | select(.type?) | select(.focused==true).num', 'r')) ? "(workspace :ws entry)" : "(box :visible false)"}) -; (literal -; :visible {entry.focused ? true : false} -; :content {entry.focused ? "(workspace :ws entry)" : "(box :visible false)"}) -; (literal -; :visible {(entry.num > jq(array, '.. | select(.type?) | select(.focused==true).num')) ? true : false} -; :content {(entry.num > jq(array, '.. | select(.type?) | select(.focused==true).num')) ? "(workspace :ws entry)" : "(box :visible false)"}))))) - - -(defwidget workspace [ws side] +(defwidget workspace [ws side ?lastws] (button :onclick `swaymsg workspace "${ws.name}"` - :class side + :class '${side} ${ws.num == lastws ? "last_workspace" : ""}' (box '${replace(ws.name,".*:","")}' (label