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)
|
||||
(profile)
|
||||
(workspaces :array {jq(sway_info,'.workspace_info','r')})
|
||||
(windowtitle)
|
||||
(scratchpad)))
|
||||
(scratchpad)
|
||||
(windowtitle)))
|
||||
|
||||
;(deflisten scratchpadArray :initial "${[1]}"
|
||||
; 'scripts/bar/scratchpad')
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@
|
|||
:revealvar-name "reveal_scratchpad"
|
||||
(label
|
||||
:class "revealer-preview"
|
||||
:tooltip "${jq(scratchpadArray,'.[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
||||
:text " ${jq(scratchpadArray,'. | length')} ${reveal_scratchpad ? '' : ''}")
|
||||
(scratchpad_children :array scratchpadArray)))
|
||||
:tooltip "${jq(sway_info,'.scratchpad_info[] | "\\(.title) (\\(.name)) \\n"','r')}"
|
||||
:text " ${jq(sway_info,'.scratchpad_info | length')} ${reveal_scratchpad ? '' : ''}")
|
||||
(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"}]}"
|
||||
'scripts/bar/scratchpad')
|
||||
;(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')
|
||||
(defwidget scratchpad_children [array]
|
||||
(box :orientation "h"
|
||||
:class "reveal-children"
|
||||
:space-evenly false
|
||||
(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'}"
|
||||
:tooltip "${entry.title}
|
||||
${entry.name}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue