chiark / gitweb /
xloadt from mariner
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 13 Jun 2016 11:05:19 +0000 (12:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 13 Jun 2016 11:05:19 +0000 (12:05 +0100)
scripts/xloadt [new file with mode: 0755]

diff --git a/scripts/xloadt b/scripts/xloadt
new file mode 100755 (executable)
index 0000000..a5eaf1b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -
+hostname="`hostname | sed -e 's/\..*//'`"
+xlsclients | egrep \
+ '[^ ]* xload -geometry [^ ]* -title '"'xload - $hostname'" \
+ >/dev/null && exit 0
+xload -geometry 120x120+20+0 -title "xload - $hostname"