New backup 2025-09-01 12:00:01
This commit is contained in:
parent
b2f8c0ff37
commit
53b18a5de5
1 changed files with 3 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue