summaryrefslogtreecommitdiff
path: root/bin/common/saf
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-01-21 23:05:03 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-21 23:05:03 +0100
commita5d21a49ccdc6141790085d4bd26b667b8d5618d (patch)
treec952cf834458da4938dfca837abe6323283d2bb8 /bin/common/saf
parentefcd2b7cdb03a354bd4311bac75953738ec34e4f (diff)
checkpoint
Diffstat (limited to 'bin/common/saf')
-rwxr-xr-xbin/common/saf14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/common/saf b/bin/common/saf
index 2936346..7323339 100755
--- a/bin/common/saf
+++ b/bin/common/saf
@@ -2,7 +2,7 @@
# Simple Ass Fetch by futxlii
-red="$(printf '\033[31m')"
+cyan="$(printf '\033[36m')"
blue="$(printf '\033[34m')"
reset="$(printf '\033[0m')"
@@ -24,10 +24,14 @@ done
KERNEL="$(uname -r)"
UPTIME="$(uptime -p)"; UPTIME="${UPTIME##up }"
SHELL="$(basename "$SHELL")"
+MEMORY_USED="$(free --bytes | awk 'NR==2 {print $3}' | numfmt --to=iec-i --format '%.2f')"
+MEMORY_TOTAL="$(free --bytes | awk 'NR==2 {print $2}' | numfmt --to=iec-i --format '%.2f')"
cat <<EOF
- ${red}- ${blue}${ID:-"unknown"}
- ${red}- ${blue}$KERNEL
- ${red}- ${blue}$UPTIME ($(load))
- ${red}- ${blue}$SHELL${reset}
+ ${blue}OS: ${cyan}${NAME:-"unknown"}
+ ${blue}Kernel: ${cyan}$KERNEL
+ ${blue}Desktop: ${cyan}$XDG_CURRENT_DESKTOP${reset}
+ ${blue}Shell: ${cyan}$SHELL${reset}
+ ${blue}Memory: ${cyan}$MEMORY_USED / $MEMORY_TOTAL
+ ${blue}Uptime: ${cyan}$UPTIME ($(load))
EOF