New backup 2026-01-22 00:30:02
This commit is contained in:
parent
053a259de9
commit
94bf6038b8
2 changed files with 8 additions and 8 deletions
|
|
@ -21,8 +21,8 @@
|
||||||
(powermenu)
|
(powermenu)
|
||||||
(profile)
|
(profile)
|
||||||
(workspaces :array {jq(sway_info,'.workspace_info','r')})
|
(workspaces :array {jq(sway_info,'.workspace_info','r')})
|
||||||
(windowtitle)
|
(scratchpad)
|
||||||
(scratchpad)))
|
(windowtitle)))
|
||||||
|
|
||||||
;(deflisten scratchpadArray :initial "${[1]}"
|
;(deflisten scratchpadArray :initial "${[1]}"
|
||||||
; 'scripts/bar/scratchpad')
|
; 'scripts/bar/scratchpad')
|
||||||
|
|
|
||||||
|
|
@ -6,18 +6,18 @@
|
||||||
:revealvar-name "reveal_scratchpad"
|
:revealvar-name "reveal_scratchpad"
|
||||||
(label
|
(label
|
||||||
:class "revealer-preview"
|
:class "revealer-preview"
|
||||||
:tooltip "${jq(scratchpadArray,'.[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
:tooltip "${jq(sway_info,'.scratchpad_info[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
||||||
:text " ${jq(scratchpadArray,'. | length')} ${reveal_scratchpad ? '' : ''}")
|
:text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
||||||
(scratchpad_children :array scratchpadArray)))
|
(scratchpad_children :array {jq(sway_info,'.scratchpad_info','r')})))
|
||||||
|
|
||||||
(deflisten scratchpadArray :initial "${[{"icon": "/usr/share/icons/breeze-dark/mimetypes/32/unknown.svg", "name": "placeholder", "title": "placeholder", "win_id": "0", "visible": "false"}]}"
|
;(deflisten scratchpadArray :initial "${[{"icon": "/usr/share/icons/breeze-dark/mimetypes/32/unknown.svg", "name": "placeholder", "title": "placeholder", "win_id": "0", "visible": "false"}]}"
|
||||||
'scripts/bar/scratchpad')
|
; 'scripts/bar/scratchpad')
|
||||||
(defwidget scratchpad_children [array]
|
(defwidget scratchpad_children [array]
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
:class "reveal-children"
|
:class "reveal-children"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(button :onclick 'swaymsg [con_id=${entry.win_id}] scratchpad show'
|
(button :onclick 'swaymsg [con_id=${entry.window_id}] scratchpad show'
|
||||||
:class "${(entry.visible == 'true') ? 'active' : 'inactive'}"
|
:class "${(entry.visible == 'true') ? 'active' : 'inactive'}"
|
||||||
:tooltip "${entry.title}
|
:tooltip "${entry.title}
|
||||||
${entry.name}"
|
${entry.name}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue