New backup 2026-01-22 10:42:37

This commit is contained in:
Penelope Gwen 2026-01-22 10:42:37 -08:00
parent 5b7f87e295
commit f8ac175dfe
3 changed files with 9 additions and 8 deletions

View file

@ -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')

View file

@ -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}"

View file

@ -47,6 +47,7 @@ $work-color: mix($color5, $color4, 30%);
}
.workspaces {
margin-right: 5px;
box.ws-center {
>box>button {
background-color: $bar-bg-color;