From 412c9df8baf9194c7242dc2454bd3b2c82e3c3d3 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Fri, 8 Aug 2025 00:33:30 +0530 Subject: sway/status.sh: show RAM usage Signed-off-by: Brahmajit Das --- .config/sway/status.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/sway/status.sh b/.config/sway/status.sh index ee74ae6..2b8d43c 100755 --- a/.config/sway/status.sh +++ b/.config/sway/status.sh @@ -32,5 +32,8 @@ network=$(ip route get 1.1.1.1 | grep -Po '(?<=dev\s)\w+' | cut -f1 -d ' ') # CPU temp cpu_temp=$(sensors | grep -oP 'CPU.*?\+\K[0-9.]+') +# RAM usage +ram_usage=$(free -h | awk '/^Mem:/ {print "RAM Usage: " $3 " / " $2}') + # Additional emojis and characters for the status bar: -echo $network $ip_addr \| CPU: $cpu_temp \| $battery_info \| LON: $date_london \| PRG: $date_prague \| $date_formatted +echo $network $ip_addr \| CPU: $cpu_temp \| $ram_usage \| $battery_info \| LON: $date_london \| PRG: $date_prague \| $date_formatted -- cgit v1.2.3