New backup 2025-07-24 10:45:02
This commit is contained in:
parent
0ee4141884
commit
b22cfccfcd
1 changed files with 17 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
|
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
|
||||||
'scripts/bar/workspaces')
|
'scripts/bar/workspaces')
|
||||||
|
(defvar wsreveal true)
|
||||||
|
|
||||||
(defwidget workspaces [array]
|
(defwidget workspaces [array]
|
||||||
(box :class "workspaces"
|
(box :class "workspaces"
|
||||||
|
@ -8,16 +8,29 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "start"
|
:halign "start"
|
||||||
|
|
||||||
|
(revealer
|
||||||
|
:reveal wsreveal
|
||||||
|
:transition "slideleft"
|
||||||
|
:duration "500ms"
|
||||||
|
(box
|
||||||
|
(for entry in array
|
||||||
|
(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)"}))))
|
||||||
|
|
||||||
(for entry in array
|
(for entry in array
|
||||||
; {entry.focused ? (workspace :ws entry) : ""})))
|
; {entry.focused ? (workspace :ws entry) : ""})))
|
||||||
; (for ws in {}
|
; (for ws in {}
|
||||||
(box
|
(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
|
(literal
|
||||||
:content {(entry.num < jq(array, '.. | select(.type?) | select(.focused==true).num')) ? "(workspace :ws entry)" : "(box :visible false)"})
|
:visible {entry.focused ? true : false}
|
||||||
(literal
|
|
||||||
:content {entry.focused ? "(workspace :ws entry)" : "(box :visible false)"})
|
:content {entry.focused ? "(workspace :ws entry)" : "(box :visible false)"})
|
||||||
(literal
|
(literal
|
||||||
:content {(entry.num > jq(array, '.. | select(.type?) | select(.focused==true).num')) ? "(workspace :ws entry)" : "(box :visible false)"})))))
|
: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)"})))))
|
||||||
|
|
||||||
;; {entry.focused ? "${entry.num}" : ""})))
|
;; {entry.focused ? "${entry.num}" : ""})))
|
||||||
; (button :onclick `swaymsg workspace "${entry.name}"`
|
; (button :onclick `swaymsg workspace "${entry.name}"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue