summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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