summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/include.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg/include.sh')
-rw-r--r--.config/wmii-hg/include.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/.config/wmii-hg/include.sh b/.config/wmii-hg/include.sh
index 788e2af..f9cf4b4 100644
--- a/.config/wmii-hg/include.sh
+++ b/.config/wmii-hg/include.sh
@@ -4,12 +4,8 @@ if [[ -z "$XDG_RUNTIME_DIR" ]]; then
exit 6
fi
-if [[ -z "$WMII_NAMESPACE" ]]; then
- export WMII_NAMESPACE="$(wmiir namespace)"
-fi
-if [[ -z "$WMII_DIR" ]]; then
- export WMII_DIR="${XDG_RUNTIME_DIR}/wmii${DISPLAY}"
-fi
+[[ -n "$WMII_ADDRESS" ]] || export WMII_ADDRESS="unix!$(wmiir namespace)/wmii"
+[[ -n "$WMII_DIR" ]] || export WMII_DIR="${XDG_RUNTIME_DIR}/wmii@${DISPLAY}"
. workarounds.sh
. util.sh