New backup 2025-07-24 10:30:02

This commit is contained in:
Penelope Gwen 2025-07-24 10:30:02 -07:00
parent 59f3c990e3
commit 0ee4141884
2 changed files with 9 additions and 3 deletions

View file

@ -59,7 +59,7 @@ $bar-module-border-radius: 8px;
padding: 0px 5px;
}
}
.workspaces>button {
.workspaces>box>box>button {
margin: 5px 0px;
background-color: $bar-module-bg-color;
border: 1px solid $bar-module-fg-color;

View file

@ -11,8 +11,14 @@
(for entry in array
; {entry.focused ? (workspace :ws entry) : ""})))
; (for ws in {}
(literal
:content {entry.focused ? "(workspace :ws entry)" : ""}))))
(box
(literal
:content {(entry.num < jq(array, '.. | select(.type?) | select(.focused==true).num')) ? "(workspace :ws entry)" : "(box :visible false)"})
(literal
:content {entry.focused ? "(workspace :ws entry)" : "(box :visible false)"})
(literal
:content {(entry.num > jq(array, '.. | select(.type?) | select(.focused==true).num')) ? "(workspace :ws entry)" : "(box :visible false)"})))))
;; {entry.focused ? "${entry.num}" : ""})))
; (button :onclick `swaymsg workspace "${entry.name}"`
; :class {entry.focused ? "focused" : ""}