Updated to current

This commit is contained in:
edwark43
2025-02-07 15:18:20 -05:00
parent c79881b41c
commit 4e391f7e4b
26 changed files with 192 additions and 126 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# I don't remember if I made this script or not.
#colors
#bold="(tput bold)"
@@ -90,10 +89,15 @@ distro() {
}
# Get root partition space used
storage() {
root_storage() {
df -h --output=used,size / | awk 'NR == 2 { print $1" / "$2 }'
}
home_storage() {
if mountpoint -q "/home"; then
df -h --output=used,size /home | awk 'NR == 2 { print $1" / "$2 }'
fi
}
# Get Memory usage
mem() {
free --mega | awk 'NR == 2 { print $3" / "$2" MB" }'
@@ -142,6 +146,7 @@ echo -e " ${c0} ┃ ${c9}(${c0}${c8}\_;/${c0}${c9})${c0} ┃ ${c1
echo -e " ┃ ${c0}┃ ${c2}init${c3} $(get_init)"
echo -e " ┃ I ${c1}${c0} Arch ┃ ${c7}de/wm${c3} $(get_de_wm)"
echo -e " ┃ ┃ ${c5}up${c3} $(get_uptime)"
echo -e " ┃ ┃ ${c1}disk${c3} $(storage)"
echo -e " ┃ ┃ ${c1}root${c3} $(root_storage)"
echo -e " ┃ ┃ ${c1}home${c3} $(home_storage)"
echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━┛ ${c1}━━━${c2}━━━${c3}━━━${c4}━━━${c5}━━━${c6}━━━${c7}━━━"
echo -e " "
echo -e " "