Commit 56e92a01fcc82500aa9f1f43c31947ce41919dcd

Thomas de Grivel 2020-05-28T10:03:40

update status line in dwm

diff --git a/bin/host-ip b/bin/host-ip
new file mode 100755
index 0000000..e26a195
--- /dev/null
+++ b/bin/host-ip
@@ -0,0 +1,2 @@
+#!/bin/sh
+ifconfig egress | grep inet | cut -d ' ' -f 2
diff --git a/bin/load b/bin/load
new file mode 100755
index 0000000..bb447de
--- /dev/null
+++ b/bin/load
@@ -0,0 +1,2 @@
+#!/bin/sh
+uptime | cut -d : -f 3 | cut -c 2-
diff --git a/bin/nwid b/bin/nwid
new file mode 100755
index 0000000..f788641
--- /dev/null
+++ b/bin/nwid
@@ -0,0 +1 @@
+ifconfig iwm0 | egrep -o 'nwid [^ ]*' | cut -d\  -f 2
diff --git a/bin/status b/bin/status
index d54ae76..b9a06bd 100755
--- a/bin/status
+++ b/bin/status
@@ -1,2 +1,2 @@
 #!/bin/sh
-xsetroot -name "$(~/bin/battery)$(~/bin/plugged) $(~/bin/temperature) $(date)"
+xsetroot -name "$(hostname) $(~/bin/host-ip) $(~/bin/nwid) $(~/bin/load) $(~/bin/temperature) $(~/bin/battery)$(~/bin/plugged) $(date)"