New backup 2026-01-31 17:30:02
This commit is contained in:
parent
085aed2c39
commit
c4972db2ba
1 changed files with 29 additions and 9 deletions
|
|
@ -1,14 +1,34 @@
|
||||||
(defvar reveal_scratchpad false)
|
(defvar reveal_scratchpad false)
|
||||||
(defwidget scratchpad []
|
(defwidget scratchpad []
|
||||||
(revealer-on-hover
|
; (revealer-on-hover
|
||||||
:class "${reveal_scratchpad} scratchpad"
|
; :class "${reveal_scratchpad} scratchpad"
|
||||||
:revealvar reveal_scratchpad
|
; :revealvar reveal_scratchpad
|
||||||
:revealvar-name "reveal_scratchpad"
|
; :revealvar-name "reveal_scratchpad"
|
||||||
(label
|
; (label
|
||||||
:class "revealer-preview"
|
; :class "revealer-preview"
|
||||||
:tooltip "${jq(sway_info,'.scratchpad_info[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
; :tooltip "${jq(sway_info,'.scratchpad_info[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
||||||
:text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
; :text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
||||||
(scratchpad_children :array {jq(sway_info,'.scratchpad_info','r')})))
|
; (scratchpad_children :array {jq(sway_info,'.scratchpad_info','r')})))
|
||||||
|
;
|
||||||
|
(box
|
||||||
|
:class "${reveal_scratchpad} scratchpad revealer-on-hover"
|
||||||
|
:orientation "h"
|
||||||
|
:space-evenly false
|
||||||
|
(eventbox
|
||||||
|
:onhover "${EWW_CMD} update reveal_scratchpad=true"
|
||||||
|
:onhoverlost "${EWW_CMD} update reveal_scratchpad=false"
|
||||||
|
(box
|
||||||
|
:space-evenly false
|
||||||
|
; (children :nth 0)
|
||||||
|
(label
|
||||||
|
:class "revealer-preview"
|
||||||
|
:tooltip "${jq(sway_info,'.scratchpad_info[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
||||||
|
:text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
||||||
|
(revealer
|
||||||
|
:reveal reveal_scratchpad
|
||||||
|
:transition "slideright"
|
||||||
|
:duration "500ms"
|
||||||
|
(scratchpad_children :array {jq(sway_info,'.scratchpad_info','r')}))))))
|
||||||
|
|
||||||
(defwidget scratchpad_children [array]
|
(defwidget scratchpad_children [array]
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue