summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg/rbar')
-rwxr-xr-x.config/wmii-hg/rbar9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/wmii-hg/rbar b/.config/wmii-hg/rbar
new file mode 100755
index 0000000..9aaa485
--- /dev/null
+++ b/.config/wmii-hg/rbar
@@ -0,0 +1,9 @@
+#!/bin/bash
+IFS=:
+read -r name prefix DISPLAY <<<"$1"
+export DISPLAY
+
+id=$1
+name=${id#[0-9][0-9]_}
+
+exec "$0"_"$name" "${id}"