summaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-08-07 19:03:30 +0000
committerBrahmajit Das <listout@listout.xyz>2025-08-07 19:03:30 +0000
commit412c9df8baf9194c7242dc2454bd3b2c82e3c3d3 (patch)
tree3fd18771e0deb17ac0b4e5e8c9b6a5b273ac5522 /.config/sway
parent487fda85f5f0b15f8a5510a3d5731ec938b790da (diff)
downloaddots-412c9df8baf9194c7242dc2454bd3b2c82e3c3d3.tar.gz
sway/status.sh: show RAM usage
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '.config/sway')
-rwxr-xr-x.config/sway/status.sh5
1 files changed, 4 insertions, 1 deletions
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