New backup 2025-09-01 11:45:02
This commit is contained in:
parent
b0aea95534
commit
b2f8c0ff37
1 changed files with 1 additions and 25 deletions
|
|
@ -44,7 +44,7 @@
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {entry.focused ? true : false}
|
:visible {entry.focused ? true : false}
|
||||||
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
|
:content {entry.focused ? '(workspace :ws entry :side '"center ${jq(array, '.[0].num)'}"')' : "(box :visible false)"})))
|
||||||
(revealer
|
(revealer
|
||||||
:class "ws-right"
|
:class "ws-right"
|
||||||
:reveal wsreveal
|
:reveal wsreveal
|
||||||
|
|
@ -71,36 +71,12 @@
|
||||||
; :visible {(entry.num > jq(array, '.. | select(.type?) | select(.focused==true).num')) ? true : false}
|
; :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)"})))))
|
; :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" : ""}
|
|
||||||
; (box
|
|
||||||
; '${replace(entry.name,".*:","")}'
|
|
||||||
; (label
|
|
||||||
; :class "workspace-number"
|
|
||||||
; :text {jq(captures(entry.num, '[0-9]$'),'.[].[]','r')}))))))
|
|
||||||
|
|
||||||
(defwidget workspace [ws side]
|
(defwidget workspace [ws side]
|
||||||
(button :onclick `swaymsg workspace "${ws.name}"`
|
(button :onclick `swaymsg workspace "${ws.name}"`
|
||||||
; :class {ws.focused ? "focused" : ""}
|
|
||||||
:class side
|
:class side
|
||||||
(box
|
(box
|
||||||
'${replace(ws.name,".*:","")}'
|
'${replace(ws.name,".*:","")}'
|
||||||
(label
|
(label
|
||||||
:class "workspace-number"
|
:class "workspace-number"
|
||||||
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))
|
:text {jq(captures(ws.num, '[0-9]$'),'.[].[]','r')}))))
|
||||||
|
|
||||||
;(defwidget workspaces [array]
|
|
||||||
;(box :class "workspaces"
|
|
||||||
; :orientation "h"
|
|
||||||
; :space-evenly false
|
|
||||||
; :halign "start"
|
|
||||||
;
|
|
||||||
; (for entry in array
|
|
||||||
; (button :onclick `swaymsg workspace "${entry.name}"`
|
|
||||||
; :class {entry.focused ? "focused" : ""}
|
|
||||||
; (box
|
|
||||||
; '${replace(entry.name,".*:","")}'
|
|
||||||
; (label
|
|
||||||
; :class "workspace-number"
|
|
||||||
; :text {jq(captures(entry.num, '[0-9]$'),'.[].[]','r')}))))))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue