[wmii] Enviroment

From: Georg Göri <goegea04_AT_htl-kaindorf.ac.at>
Date: Mon, 10 Mar 2008 22:08:16 +0100

Hi
I hope I am right with my problem on this mailing list and firstly I
want to excuse for my bad English.

So now to my problem, since I use wmii with the plan9port support I have
having problems with my environment variables.
As you can see in the attached env.output I have all setting from the
rc.wmii in my environment and the problem is that the "fn#" variables
make bash and other things not work any more. So my question is if that
behavior is normal and if I can prevent wmii form this behavior.

Thanks

Georg Göri

fn#Key-Mod4-f={wmiir xwrite /client/sel/ctl Fullscreen toggle}

fn#Event-ClientMouseDown={client=$1;button=$2;if(~ $button 3){do=`{9menu -initial $menulast Nop Delete Fullscreen};switch ($do) {case Delete;wmiir xwrite /client/^$client^/ctl kill;case Fullscreen;wmiir xwrite /client/^$client^/ctl Fullscreen on};if(! ~ $#do 0)menulast=$do}}

fn#next_tag={awk -v curtag^'='^`{wmiir read /tag/sel/ctl} '
                        NR==1 {first = $0}
                        $0==curtag { if(getline) print $0; else print first; exit }'}

MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/
fn#Key-Mod4-d={wmiir xwrite /tag/sel/ctl colmode sel default}

fn#Event-Start={switch ($1) {case wmiirc;rm -f $progs_file;exit}}

fn#proglist={>[2]/dev/null /bin/ls -lL `{echo $*|sed 'y/:/ /'}|awk '$1 ~ /^[^d].*x/ && NF > 2 { print $NF }'|sort|uniq}

do=Delete
rcname=/usr/plan9/bin/rc
fn#Key-Mod4-b={wmiir xwrite /ctl view `{read_tags|sort -r|next_tag}}

key=Key-Shift-Mod4-0Key-Shift-Mod4-1Key-Shift-Mod4-2Key-Shift-Mod4-3Key-Shift-Mod4-4Key-Shift-Mod4-5Key-Shift-Mod4-6Key-Shift-Mod4-7Key-Shift-Mod4-8Key-Shift-Mod4-9
TERM=xterm
fn#Event-FocusTag={wmiir xwrite /lbar/^$"* $WMII_FOCUSCOLORS `{viewtitle $*}}

SHELL=/bin/bash
fn#Key-Mod4-a={Action `{actionlist|wmiimenu}&}

fn#Event-UrgentTag={shift;wmiir xwrite /lbar/^$"* '*'^$"*}

fn#Key-Mod4-n={wmiir xwrite /ctl view `{read_tags|next_tag}}

WMII_NS_DIR=/tmp/ns.jgrnt.:0
fn#initkeys={getfuns Key|wmiir write /keys}

fn#Key-Mod4-l={wmiir xwrite /tag/sel/ctl select right}

WMII_CONFPATH=/home/jgrnt/.wmii-3.5:/etc/wmii-3.5
PLAN9=/usr/plan9
WINDOWID=14680077
fn#Key-Mod4-m={wmiir xwrite /tag/sel/ctl colmode sel max}

fn#Event-UnfocusTag={wmiir xwrite /lbar/^$"* $WMII_NORMCOLORS `{viewtitle $*}}

WMII_ADDRESS=unix!/tmp/ns.jgrnt.:0/wmii
fn#wmiimenu={dmenu -b -fn $WMII_FONT -nf $WMII_NORMCOLORS(1) -nb $WMII_NORMCOLORS(2) -sf $WMII_FOCUSCOLORS(1) -sb $WMII_FOCUSCOLORS(2)}

fn#Key-Mod4-j={wmiir xwrite /tag/sel/ctl select down}

fn#Event-LeftBarClick={shift;wmiir xwrite /ctl view $*}

menulast=Delete
fn#Key-Mod4-k={wmiir xwrite /tag/sel/ctl select up}

fn#Key-Mod4-h={wmiir xwrite /tag/sel/ctl select left}

WMII_FONT=-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*
WMII_NORMCOLORS=#e0e0e0#444444#666666
ANT_HOME=/usr/share/ant-core
fn#Key-Mod4-Return={run_command $WMII_TERM&}

fn#Key-Mod4-6={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

XTERM_SHELL=/bin/bash
fn#Key-Mod4-7={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

USER=jgrnt
MODKEY=Mod4
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
oldpath=/usr/local/bin/usr/bin/bin/opt/bin/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/usr/games/bin/opt/vmware/server/console/bin
fn#Key-Mod4-t={wmiir xwrite /ctl view `{read_tags|wmiimenu}&}

fn#Key-Mod4-4={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

fn#Key-Mod4-5={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

GDK_USE_XFT=1
fn#keynum={echo `{echo $1|sed 's/.*-//'}}

fn#Key-Mod4-2={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

apid=9667
fn#Key-Mod4-s={wmiir xwrite /tag/sel/ctl colmode sel stack}

fn#Key-Mod4-3={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

status=
fn#Key-Mod4-p={ifs=() {run_command `{<$progs_file wmiimenu}&}}

fn#Key-Mod4-0={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

fn#Event-NotUrgentTag={shift;wmiir xwrite /lbar/^$"* $"*}

RIGHT=l
fn#Key-Mod4-1={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

fn#Event-DestroyTag={wmiir remove /lbar/^$"*}

event=Key
fn#9menu={wmii9menu -font $WMII_FONT -^(nf nb br)^$WMII_NORMCOLORS -^(sf sb br)^$WMII_FOCUSCOLORS $*}

PAGER=/usr/bin/less
CONFIG_PROTECT_MASK=/etc/env.d/java/ /etc/udev/rules.d /etc/fonts/fonts.conf /etc/terminfo /etc/revdep-rebuild
fn#viewtitle={echo $*}

fn#Key-Mod4-Shift-space={wmiir xwrite /tag/sel/ctl send sel toggle}

path=/usr/local/bin/usr/bin/bin/opt/bin/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/usr/games/bin/opt/vmware/server/console/bin
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin:/opt/vmware/server/console/bin
fn#Key-Mod4-8={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

fn#Event-CreateTag={echo $WMII_NORMCOLORS `{viewtitle $*}|wmiir create /lbar/^$"*}

pid=4942
fn#Key-Mod4-9={wmiir xwrite /ctl view `{tagnum `{keynum $1}}}

UP=k
fn#Key-Mod4-space={wmiir xwrite /tag/sel/ctl select toggle}

fn#Action-exec={wmiir xwrite /ctl exec $*}

PWD=/home/jgrnt
DISTCC_LOG=
fn#Key-Mod4-Shift-c={wmiir xwrite /client/sel/ctl kill}

JAVA_HOME=/etc/java-config-2/current-system-vm
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
EDITOR=/bin/nano
ifs=

DOWN=j
fn#status={echo -n `{uptime|sed 's/.*://; s/,//g'} '|' `{date}}

WMII_BACKGROUND=#333333
fn#Key-Mod4-Control-t={switch (`{wmiir read /keys|wc -l}) {case 0 1;initkeys;wmiir xwrite /ctl grabmod $MODKEY;case *;wmiir xwrite /keys $MODKEY^-Control-t;wmiir xwrite /ctl grabmod Mod3}}

fn#getfuns={env|sed -n 's/^fn#'^$1^'-([^=]+).*/\1/p'}

progs_file=/tmp/ns.jgrnt.:0/proglist.4942
fn#Key-Mod4-Shift-h={wmiir xwrite /tag/sel/ctl send sel left}

DISTCC_VERBOSE=0
DCCC_PATH=/usr/lib/distcc/bin
fn#Key-Mod4-Shift-k={wmiir xwrite /tag/sel/ctl send sel up}

*=xterm
XTERM_LOCALE=C
XTERM_VERSION=XTerm(229)
fn#tagnum={echo `{read_tags|sed -n $1^p}}

fn#Key-Mod4-Shift-j={wmiir xwrite /tag/sel/ctl send sel down}

WMII_TERM=xterm
WMII_FOCUSCOLORS=#A0FF00#686363#8c8c8c
home=/home/jgrnt
fn#read_tags={wmiir ls /tag|sed 's,/,,; /^sel$/d'}

fn#actionlist={{proglist $WMII_CONFPATH;getfuns Action}|sort|uniq}

fn#Key-Mod4-Shift-l={wmiir xwrite /tag/sel/ctl send sel right}

SHLVL=2
JDK_HOME=/etc/java-config-2/current-system-vm
HOME=/home/jgrnt
fn#Action-overridekeys={fn next_tag {awk -v curtag^'='^`{wmiir read /tag/sel/ctl} '
                        NR==1 {first = $0}
                        $0==curtag { if(getline) print $0; else print first; exit }'};fn Key-^$MODKEY^-n {wmiir xwrite /ctl view `{read_tags|next_tag}};fn Key-^$MODKEY^-b {wmiir xwrite /ctl view `{read_tags|sort -r|next_tag}};fn tagidx {num=`{echo $1|sed 's/.*-//'};echo `{read_tags|sed -n $num^p}};fn Key-^$MODKEY^-Shift-t {tag=`{read_tags|wmiimenu|sed 's/(.*)([+\-])$/\2\1/'};wmiir xwrite /client/^`{wmiir read /client/sel/ctl}^/tags $tag};fn keynum {echo `{echo $1|sed 's/.*-//'}};fn tagnum {echo `{read_tags|sed -n $1^p}};for(i in `{seq 0 9}){fn Key-^$MODKEY^-^$i {wmiir xwrite /ctl view `{tagnum `{keynum $1}}};fn Key-Shift-^$MODKEY^-^$i {wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}}}

fn#Event-Key={Key-^$1 $1}

prompt=% 
fn#Key-Shift-Mod4-9={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

fn#Key-Shift-Mod4-8={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

PYTHONPATH=/usr/lib64/portage/pym
LOGNAME=jgrnt
LESS=-R -M --shift 5
fn#run_command={@ {rfork ns;path=$oldpath;eval exec $*&}}

fn#key={key=();for(k in Key-^$*)if(! 'fn?' $k)key=($key $k);~ $#key 0}

GCC_SPECS=
CVS_RSH=ssh
fn#Key-Mod4-Shift-t={tag=`{read_tags|wmiimenu|sed 's/(.*)([+\-])$/\2\1/'};wmiir xwrite /client/^`{wmiir read /client/sel/ctl}^/tags $tag}

fn#Action={cmd=$1 action=Action-^$cmd {shift;if('fn?' $action)$action $*;if not run_command `{config_whatis $cmd} $*}&}

client=0x8041bc
CLASSPATH=.
fn#tagidx={num=`{echo $1|sed 's/.*-//'};echo `{read_tags|sed -n $num^p}}

LESSOPEN=|lesspipe.sh %s
seltag=nil
fn#Key-Shift-Mod4-3={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

fn#Action-status={flag x -;flag r -;if(>[2]/dev/null wmiir remove /rbar/status)sleep 2;echo $WMII_NORMCOLORS|wmiir create /rbar/status;while (status|wmiir write /rbar/status)sleep 1}

local=/home/jgrnt/.wmii-3.5/rc.wmii.local
fn#Key-Shift-Mod4-2={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

fn#Action-rehash={if(test -d /proc/^$pid)for(i in $WMII_NS_DIR^/proglist.*){id=`{echo $i|sed 's/.*\.(.*)/\1/'} if(! test -d /proc/^$id)rm $i};>$progs_file proglist $PATH}

WINDOWPATH=7
INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-22
fn#fn?={>[2]/dev/null rc -c 'whatis '^$1|grep -s '^fn '}

fn#config_whatis={prog=`{@ {path=$confpath whatis $1}|grep -v '^fn|=' || echo /dev/null};shift;echo $prog $*}

fn#Key-Shift-Mod4-1={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

DISPLAY=:0.0
fn#Key-Shift-Mod4-0={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

OPENGL_PROFILE=nvidia
LEFT=h
fn#Key-Shift-Mod4-7={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

button=3
fn#Key-Shift-Mod4-6={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

fn#Key-Shift-Mod4-5={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

CONFIG_PROTECT=/usr/share/X11/xkb
fn#Key-Shift-Mod4-4={wmiir xwrite /client/sel/tags `{tagnum `{keynum $1}}}

fn#Action-quit={wmiir xwrite /ctl quit}

confpath=/home/jgrnt/.wmii-3.5/etc/wmii-3.5
_=/usr/bin/env
Received on Mon Mar 10 2008 - 22:08:19 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:37:52 UTC