Round signal strength and mark with percent sign
[khome.git] / home / lib / login_functions.sh
index 4fc413f..06444ac 100644 (file)
@@ -399,6 +399,10 @@ motd() {
 
     echo
 
+    printf 'tmux sessions: %d\n' "$(tmux ls 2> /dev/null | wc -l)"
+
+    echo
+
     printf 'mem  '
     free \
     | awk '$1 == "Mem:" {total=$2; used=$3; print used, total}' \
@@ -475,7 +479,7 @@ motd() {
                 if (device != "lo") {
                     l = link[device]
                     e = essid[device]
-                    l = l ? l : "--"
+                    l = l ? sprintf("%.0f%%", l) : "--"
                     e = e ? e : "--"
                     print device, address[device], e, l
                 }
This page took 0.026017 seconds and 4 git commands to generate.