summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 00:04:46 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 00:06:54 -0500
commitf5c41d73b4c085691f2c01dd80366d08cb352a01 (patch)
tree4af983accfa29bc375f982746ab38154520ba020 /.config
parent4489c41535e3d4b90174e3fe8c3561680de915b9 (diff)
wmii: put /n/ in $XDG_RUNTIME_DIR
Diffstat (limited to '.config')
-rw-r--r--.config/wmii-hg/include.sh4
-rw-r--r--.config/wmii-hg/rbar.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/wmii-hg/include.sh b/.config/wmii-hg/include.sh
index bd9456f..f9e3078 100644
--- a/.config/wmii-hg/include.sh
+++ b/.config/wmii-hg/include.sh
@@ -1,10 +1,10 @@
#!/bin/bash
if [[ -z "$WMII_NAMESPACE" ]]; then
- export WMII_NAMESPACE="`wmiir namespace`"
+ export WMII_NAMESPACE="$(wmiir namespace)"
fi
if [[ -z "$WMII_DIR" ]]; then
- export WMII_DIR="$HOME/n/wmii${DISPLAY}"
+ export WMII_DIR="${XDG_RUNTIME_DIR}/n/wmii${DISPLAY}"
fi
. util.sh
diff --git a/.config/wmii-hg/rbar.sh b/.config/wmii-hg/rbar.sh
index 4f6faf1..8bff558 100644
--- a/.config/wmii-hg/rbar.sh
+++ b/.config/wmii-hg/rbar.sh
@@ -1,10 +1,10 @@
#!/bin/bash
setup_trap() {
- trap "rm -f -- ${HOME}/n/wmii*/rbar/${1}" EXIT
+ trap "rm -f -- \"\${XDG_RUNTIME_DIR}\"/n/wmii*/rbar/${1}" EXIT
}
write() {
- dirs=("${HOME}"/n/wmii*/rbar/)
+ local dirs=("${XDG_RUNTIME_DIR}"/n/wmii*/rbar/)
sponge|tee -a "${dirs[@]/%/${1}}" > /dev/null
}