summaryrefslogtreecommitdiff
path: root/config/Xwilling
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2015-12-24 17:25:15 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2015-12-24 17:25:15 +0100
commitcec06325ba15fc490a5df2d215fc80030534cf07 (patch)
tree5bf538bf45d040f3a614bc4dcadfc89411974302 /config/Xwilling
Start of a new reduced version of xdm.
Removed support for non BSD systems and for XDMCP.
Diffstat (limited to 'config/Xwilling')
-rw-r--r--config/Xwilling11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/Xwilling b/config/Xwilling
new file mode 100644
index 0000000..7d5d0ad
--- /dev/null
+++ b/config/Xwilling
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+
+# The output of this script is displayed in the chooser window.
+# (instead of "Willing to manage")
+
+load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
+nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`"
+s=""; [ "$nrusers" != 1 ] && s=s
+
+echo "${nrusers} user${s}, load: ${load}"