removed rc/extern redirection, removed OLD_PATH stuff (unnecessary), I don't care about WMII_FONT/*COLORS being in env, three vars are ok, changed progs file location (this allows running wmiirc from shell as well, because DISPLAY is not screwed up)

This commit is contained in:
Anselm R. Garbe 2006-04-14 10:28:10 +02:00
parent 1951514d99
commit 0b7acc5330
3 changed files with 4 additions and 15 deletions

View File

@ -3,8 +3,7 @@
wmiiwm -c || exit 1
OLD_PATH=$PATH export OLD_PATH
PATH=$HOME/.wmii-3:CONFPREFIX/wmii-3:$PATH export PATH
PATH=$PATH:$HOME/.wmii-3:CONFPREFIX/wmii-3 export PATH
WMII_ADDRESS=unix!/tmp/ns.$USER.$DISPLAY/wmii export WMII_ADDRESS
mkdir -m 700 /tmp/ns.$USER.$DISPLAY 2>/dev/null

View File

@ -1,10 +0,0 @@
#!/bin/sh
# clean the environment and execute the given command
PATH=$OLD_PATH export PATH
unset OLD_PATH
unset WMII_FONT
unset WMII_NORMCOLORS
unset WMII_SELCOLORS
exec "$@"

View File

@ -45,7 +45,7 @@ EOF
# MISC
xsetroot -solid '#0b1014'
status &
proglist $OLD_PATH >/tmp/ns.$USER.$DISPLAY/progs &
proglist $PATH >/tmp/.wmiimenu.progs &
# SHORTCUTS
xwrite /def/grabmod $MODKEY
@ -128,13 +128,13 @@ do
$MODKEY-a)
`proglist CONFPREFIX/wmii-3:$HOME/.wmii-3 | wmiimenu` &;;
$MODKEY-p)
extern `wmiimenu </tmp/ns.$USER.$DISPLAY/progs` &;;
`wmiimenu </tmp/.wmiimenu.progs` &;;
$MODKEY-t)
xwrite /ctl view "`wmiir read /tags | wmiimenu`" &;;
$MODKEY-[0-9])
xwrite /ctl view `echo $1 | sed 's/.*-//'`;;
$MODKEY-Return)
extern xterm &;;
xterm &;;
$MODKEY-Shift-$LEFT)
xwrite /view/sel/sel/ctl sendto prev;;
$MODKEY-Shift-$RIGHT)