New backup 2025-03-11 21:30:06

This commit is contained in:
Penelope Gwen 2025-03-11 21:30:06 -07:00
parent 03d63c093e
commit 65d9727ef6
4 changed files with 17 additions and 6 deletions

View file

@ -140,6 +140,12 @@ menu {
}
}
}
tooltip{
color: $color9;
background-color: rgba($color0,0.75);
border: 2px solid rgba($color0,0.5);
border-radius: 8px;
}
.rat {
border-radius: 8px;

View file

@ -18,24 +18,27 @@
(windowtitle)
(scratchpad :array scratchpadArray)))
(defpoll scratchpadArray :interval 5s
(defpoll scratchpadArray :interval "5s"
'scripts/bar/scratchpad')
(defwidget scratchpad [array]
(box :orientation "v"
:space-evenly false
:class "workspaces"
(box :space-evenly false
(for entry in array
(image :path "${entry.icon}"
(button :tooltip "${entry.name}
test"
(image :path {entry.icon}
:image-width 25
:image-height 25)
${entry.name}
)))))
; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg"
; :image-width 25
; :image-height 25)
; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png"
; :image-width 25
; :image-height 25
)))
; )))
(defwidget centergroup []
(box :class "centergroup" :orientation "h" :space-evenly false :halign "start"

View file

@ -20,5 +20,5 @@
(progress
:height 10
:valign "center"
:value {jq(EWW_BATTERY,'.[].capacity?')}
:value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'.[].capacity?')}
:orientation "h")))

View file

@ -159,6 +159,7 @@ title_fmt='%s'
applist_array=()
applist=""
shopt -s lastpipe
swaymsg -t get_tree |
# get list of windows as tab-separated columns
jq -r "$jq_get_windows | $jq_windows_to_tsv" |
@ -180,7 +181,8 @@ column -s $'\t' -o $'\t' -t | while IFS=$'\t' read -r win_id ws_name app_name wi
# "${app_name##*.}" \
# "$ws_name" \
# "$win_title"
done | echo "${applist}"
done
echo ${applist}
#echo "${applist_array[@]}"
#printf '%s\n' "${applist_array[@]}"
#echo "${applist_array[@]}"