chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3775c9
)
xloadt from mariner
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Mon, 13 Jun 2016 11:05:19 +0000
(12:05 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Mon, 13 Jun 2016 11:05:19 +0000
(12:05 +0100)
scripts/xloadt
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/xloadt
b/scripts/xloadt
new file mode 100755
(executable)
index 0000000..
a5eaf1b
--- /dev/null
+++ b/
scripts/xloadt
@@ -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"