summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/config.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-29 00:52:30 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-29 00:52:30 -0500
commit8761e30b770ae0995dac884a04f2ac3818bcfc26 (patch)
tree7101690a1fe3e4ea38e18ab08560de6be6fa5984 /.config/wmii-hg/config.sh
parentdd4773d812f379a3b562e1f873418edc2036d98c (diff)
wmii: tidy up
Diffstat (limited to '.config/wmii-hg/config.sh')
-rw-r--r--.config/wmii-hg/config.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh
index 6f63f75..d1da234 100644
--- a/.config/wmii-hg/config.sh
+++ b/.config/wmii-hg/config.sh
@@ -36,8 +36,7 @@ Event() {
< "`conffile rules`" expand_variables >> $WMII_DIR/rules
< "`conffile ctl-init`" expand_variables >> $WMII_DIR/ctl
scansection Key | cut -sf2 >> $WMII_DIR/keys
- # Configure X11
- hsetroot -solid "$WMII_BACKGROUND"
+ #hsetroot -solid "$WMII_BACKGROUND"
# Clear the LBar and RBar
find $WMII_DIR/{l,r}bar -type f -delete
@@ -62,7 +61,7 @@ Event() {
echo " -> Unmounting WMII_DIR=$WMII_DIR..."
9umount "$WMII_DIR"
echo " -> Removing mountpoint WMII_DIR=$WMII_DIR..."
- rmdir "$WMII_DIR";;
+ rmdir -p "$WMII_DIR" 2>/dev/null;;
## WMII-meta events
Quit) ## No args
echo ' ==> wmii quit: unmounting'
@@ -241,8 +240,8 @@ Key() {
Action() {
local prog=$(path_which "$WMII_CONFPATH" "$1"); shift
if [ -n "$prog" ]; then
- "$prog" "$@"
+ exec "$prog" "$@"
else
- false
+ exec false
fi
}