New backup 2025-10-09 21:30:01
This commit is contained in:
parent
c10b17599f
commit
0371f39caf
2 changed files with 11 additions and 9 deletions
|
@ -153,6 +153,7 @@ revealer.home {
|
|||
background-position: center;
|
||||
background-size: cover;
|
||||
margin: 10px;
|
||||
border-radius: $home-widget-border-radius;
|
||||
}
|
||||
.details {
|
||||
// * { border: 2px solid red; }
|
||||
|
@ -171,6 +172,7 @@ revealer.home {
|
|||
color: $home-button-fg-color;
|
||||
background-color: $home-button-bg-color;
|
||||
border-radius: $home-button-border-radius;
|
||||
padding: 5px 0px;
|
||||
margin: 0px 10px 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,18 +7,18 @@ server_list=("mc.pogmom.me" "ian.hotn.gay")
|
|||
|
||||
update_cache_json(){
|
||||
|
||||
# for s in "${server_list[@]}";do
|
||||
# mcstatus "${s}" json | jq '. += {"address":"'"${s}"'","icon_path":"'"${cache_path}/${s}"'.png"}'
|
||||
# done | jq -n '[inputs]' | tee "${mcstatus_cache}" >/dev/null
|
||||
for s in "${server_list[@]}";do
|
||||
mcstatus "${s}" json | jq '. += {"address":"'"${s}"'","icon_path":"'"${cache_path}/${s}"'.png"}'
|
||||
done | jq -n '[inputs]' | tee "${mcstatus_cache}" >/dev/null
|
||||
jq -rc '.[] | "\(.address) \(.status.icon)"' "${mcstatus_cache}" | while read name icon;do
|
||||
echo "${name}"
|
||||
echo "${icon/*base64,/}"
|
||||
# echo "${icon/*base64,/}" | base64 --decode > "${cache_path}/${name}.png"
|
||||
# echo "${name}"
|
||||
# echo "${icon/*base64,/}"
|
||||
echo "${icon/*base64,/}" | base64 --decode > "${cache_path}/${name}.png"
|
||||
done
|
||||
}
|
||||
|
||||
#if [[ ! $(find "${mcstatus_cache}" -cmin -15 -print 2>/dev/null) ]]; then
|
||||
if [[ ! $(find "${mcstatus_cache}" -cmin -15 -print 2>/dev/null) ]]; then
|
||||
update_cache_json
|
||||
#fi
|
||||
fi
|
||||
|
||||
#cat "${mcstatus_cache}"
|
||||
cat "${mcstatus_cache}"
|
||||
|
|
Loading…
Add table
Reference in a new issue