New backup 2025-03-11 21:30:06
This commit is contained in:
parent
03d63c093e
commit
65d9727ef6
4 changed files with 17 additions and 6 deletions
|
@ -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 {
|
.rat {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
|
@ -18,24 +18,27 @@
|
||||||
(windowtitle)
|
(windowtitle)
|
||||||
(scratchpad :array scratchpadArray)))
|
(scratchpad :array scratchpadArray)))
|
||||||
|
|
||||||
(defpoll scratchpadArray :interval 5s
|
(defpoll scratchpadArray :interval "5s"
|
||||||
'scripts/bar/scratchpad')
|
'scripts/bar/scratchpad')
|
||||||
(defwidget scratchpad [array]
|
(defwidget scratchpad [array]
|
||||||
(box :orientation "v"
|
(box :orientation "v"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
|
:class "workspaces"
|
||||||
(box :space-evenly false
|
(box :space-evenly false
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(image :path "${entry.icon}"
|
(button :tooltip "${entry.name}
|
||||||
|
test"
|
||||||
|
(image :path {entry.icon}
|
||||||
:image-width 25
|
:image-width 25
|
||||||
:image-height 25)
|
:image-height 25)
|
||||||
${entry.name}
|
)))))
|
||||||
; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg"
|
; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg"
|
||||||
; :image-width 25
|
; :image-width 25
|
||||||
; :image-height 25)
|
; :image-height 25)
|
||||||
; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png"
|
; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png"
|
||||||
; :image-width 25
|
; :image-width 25
|
||||||
; :image-height 25
|
; :image-height 25
|
||||||
)))
|
; )))
|
||||||
|
|
||||||
(defwidget centergroup []
|
(defwidget centergroup []
|
||||||
(box :class "centergroup" :orientation "h" :space-evenly false :halign "start"
|
(box :class "centergroup" :orientation "h" :space-evenly false :halign "start"
|
||||||
|
|
|
@ -20,5 +20,5 @@
|
||||||
(progress
|
(progress
|
||||||
:height 10
|
:height 10
|
||||||
:valign "center"
|
:valign "center"
|
||||||
:value {jq(EWW_BATTERY,'.[].capacity?')}
|
:value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'.[].capacity?')}
|
||||||
:orientation "h")))
|
:orientation "h")))
|
||||||
|
|
|
@ -159,6 +159,7 @@ title_fmt='%s'
|
||||||
|
|
||||||
applist_array=()
|
applist_array=()
|
||||||
applist=""
|
applist=""
|
||||||
|
shopt -s lastpipe
|
||||||
swaymsg -t get_tree |
|
swaymsg -t get_tree |
|
||||||
# get list of windows as tab-separated columns
|
# get list of windows as tab-separated columns
|
||||||
jq -r "$jq_get_windows | $jq_windows_to_tsv" |
|
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##*.}" \
|
# "${app_name##*.}" \
|
||||||
# "$ws_name" \
|
# "$ws_name" \
|
||||||
# "$win_title"
|
# "$win_title"
|
||||||
done | echo "${applist}"
|
done
|
||||||
|
echo ${applist}
|
||||||
#echo "${applist_array[@]}"
|
#echo "${applist_array[@]}"
|
||||||
#printf '%s\n' "${applist_array[@]}"
|
#printf '%s\n' "${applist_array[@]}"
|
||||||
#echo "${applist_array[@]}"
|
#echo "${applist_array[@]}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue