mb-status mirror rank upd
This commit is contained in:
@@ -17,7 +17,7 @@ yad --title="About Mabox" --window-icon=mbcc \
|
||||
--pversion="$(lsb_release -rs) <i>${OSCODE}</i>" \
|
||||
--image=mbcc \
|
||||
--comments="${COMMENT}" \
|
||||
--copyright="Copyright 2016-2025, Daniel Napora <danieln@maboxlinux.org>" \
|
||||
--copyright="Copyright 2016-2026, Daniel Napora <danieln@maboxlinux.org>" \
|
||||
--license=GPL3 \
|
||||
--website="https://maboxlinux.org" \
|
||||
--website-label=maboxlinux.org \
|
||||
|
||||
@@ -190,7 +190,7 @@ if hash expac 2>/dev/null && [[ "${big_pkgs}" -gt 0 ]];then
|
||||
out2+=("$(printf '<small>%2s.</small>' $count) $pkgname $size M,mb-cli pkginfo $pkgname")
|
||||
done< <(expac -H M '%-20n %10m' | sort -rhk 2 | head -n "${big_pkgs}")
|
||||
out2+=("^sep($_PKGS_STATS)")
|
||||
out2+=(" <small>yay -Ps</small>,mb-cli stats")
|
||||
out2+=("<big></big> <small>yay -Ps</small>,mb-cli stats")
|
||||
if hash qdirstat 2>/dev/null;then
|
||||
out2+=("<big></big> $_QDIRPKG,qdirstat pkg:/")
|
||||
fi
|
||||
@@ -217,29 +217,38 @@ out+=("<big></big> $_CHECK_NOW,checkupdates.sh -p")
|
||||
out+=("^sep()")
|
||||
out+=("$_RANK_MIRROR,^checkout(mirrors)")
|
||||
out+=("^sep()")
|
||||
out+=("$_RENEW_KEYS,^term(sudo pacman -Sy archlinux-keyring manjaro-keyring mabox-keyring;read -p "${FINISHED}"")
|
||||
out2+=("^tag(mirrors)")
|
||||
out2+=("^sep($_MIRROR_RANKING)")
|
||||
out2+=("Fasttrack <small>pacman-mirrors -f5</small>,mb-cli mirrors")
|
||||
out2+=("All <small>pacman-mirrors -i -c all</small>,mb-cli mirrors_all")
|
||||
out2+=("Geoip <small>pacman-mirrors -i --geoip</small>,mb-cli mirrors_geo")
|
||||
if hash pacman-mirrors 2>/dev/null;then
|
||||
out+=("$_RENEW_KEYS,^term(sudo pacman -Sy archlinux-keyring manjaro-keyring mabox-keyring;read -p "${FINISHED}"")
|
||||
out2+=("^tag(mirrors)")
|
||||
out2+=("^sep($_MIRROR_RANKING)")
|
||||
out2+=("Fasttrack <small>pacman-mirrors -f5</small>,mb-cli mirrors")
|
||||
out2+=("All <small>pacman-mirrors -i -c all</small>,mb-cli mirrors_all")
|
||||
fi
|
||||
fi
|
||||
if [[ "${updates}" != 0 ]];then
|
||||
out+=("^sep(<span bgcolor='${WARN_BGCOLOR}' fgcolor='${WARN_FGCOLOR}'> <i>$_PENDING:</i> ${updates} </span>)")
|
||||
out+=("^sep(<span bgcolor='${WARN_BGCOLOR}' fgcolor='${WARN_FGCOLOR}'> repo: ${REPO} AUR: ${AUR} </span>)")
|
||||
[[ "${updates}" -gt 10 ]] && out+=("$_GO_TO_FORUM: <b>Mabox</b> forum, xdg-open https://forum.maboxlinux.org/c/news-development/updates/25" "$_GO_TO_FORUM: <b>Manjaro</b> forum,xdg-open https://forum.manjaro.org/c/announcements/stable-updates/" "^sep()")
|
||||
|
||||
if hash pacman-mirrors 2>/dev/null;then
|
||||
if [[ "${updates}" -gt 10 ]];then
|
||||
out+=("$_GO_TO_FORUM: <b>Mabox</b> forum, xdg-open https://forum.maboxlinux.org/c/news-development/updates/25" "$_GO_TO_FORUM: <b>Manjaro</b> forum,xdg-open https://forum.manjaro.org/c/announcements/stable-updates/" "^sep()")
|
||||
fi
|
||||
fi
|
||||
|
||||
if hash yay 2>/dev/null;then
|
||||
out+=("$_UPDATE_YAY $_NO_AUR,mb-cli update-noaur")
|
||||
out+=("$_UPDATE_YAY,mb-cli update")
|
||||
fi
|
||||
out+=("$_UPDATE_PACMAN,mb-cli pacupdate")
|
||||
out+=("^sep()")
|
||||
out+=("$_RENEW_KEYS,^term(sudo pacman -Sy archlinux-keyring manjaro-keyring mabox-keyring;read -p "${FINISHED}"")
|
||||
#out+=("^sep()")
|
||||
#out+=("$_UPDATE_PAMAC,pamac-manager --updates")
|
||||
|
||||
out+=("^sep(<small><i>$_MIRROR_RANKING</i></small>)")
|
||||
out+=("Fasttrack <small>pacman-mirrors -f5</small>,mb-cli mirrors")
|
||||
out+=("All <small>pacman-mirrors -i -c all</small>,mb-cli mirrors_all")
|
||||
out+=("Geoip <small>pacman-mirrors -i --geoip</small>,mb-cli mirrors_geo")
|
||||
if hash pacman-mirrors 2>/dev/null;then
|
||||
out+=("^sep(<small><i>$_MIRROR_RANKING</i></small>)")
|
||||
out+=("Fasttrack <small>pacman-mirrors -f5</small>,mb-cli mirrors")
|
||||
out+=("All <small>pacman-mirrors -i -c all</small>,mb-cli mirrors_all")
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -402,7 +411,7 @@ jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} ${option} 2>/dev/nu
|
||||
#--field="important for Mabox's continued existence.":LBL \
|
||||
#--button="Donate":"$LINK" --button="No Thanks":"0"
|
||||
#}
|
||||
#updates=100
|
||||
#updates=99
|
||||
status(){
|
||||
#if [[ "$DIFF" -gt "1" ]];then
|
||||
#DDATE=$(date +%Y-%m-%d)
|
||||
|
||||
Reference in New Issue
Block a user