summaryrefslogtreecommitdiff
path: root/.config/wmii-hg
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg')
-rwxr-xr-x.config/wmii-hg/autostart16
-rw-r--r--.config/wmii-hg/config.sh3
-rwxr-xr-x.config/wmii-hg/rbar9
3 files changed, 9 insertions, 19 deletions
diff --git a/.config/wmii-hg/autostart b/.config/wmii-hg/autostart
deleted file mode 100755
index 156fe7d..0000000
--- a/.config/wmii-hg/autostart
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-. include.sh
-
-xrandr --output VGA-1 --off
-
-daemon xcompmgr &> /dev/null
-daemon lxpanel &> /dev/null
-#daemon nm-applet &> /dev/null
-daemon dunst &> /dev/null
-daemon blueman-applet &> /dev/null
-daemon clipit -dn &> /dev/null
-
-PATH="$WMII_CONFPATH:$PATH"
-daemon rbar_acpi 97_acpi &> /dev/null
-daemon rbar_wifi 98_wifi &> /dev/null
-daemon rbar_clock 99_clock &> /dev/null
diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh
index 888c3ae..98c41a6 100644
--- a/.config/wmii-hg/config.sh
+++ b/.config/wmii-hg/config.sh
@@ -49,9 +49,6 @@ Event() {
Event FocusTag "$tag"
fi
done < <(lstags)
-
- # Run the autostart action
- Action autostart
;;
WmiircQuit) ## No args
echo ' ==> Stopping wmiirc'
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}"