--- trunk/dwm-popup 2007/07/28 23:49:51 44 +++ trunk/dwm-popup 2007/07/29 11:12:42 45 @@ -1,13 +1,13 @@ -#!/bin/sh +#!/bin/sh -x uid="$1" test -z "$uid" && uid="null" name="dwm-popup-$uid" -id_f="/tmp/$name.id" +id_f="/dev/shm/$name.id" if [ "$2" == "term" ] ; then id=`xwit -current -print | cut -d: -f1` - echo "*** uid $uid id $id ***" + echo "*** uid $uid id $id to $id_f ***" echo $id > $id_f case $uid in @@ -17,15 +17,21 @@ esac fi -# -term="rxvt -geometry 100x43+100-20 -name $name -fn neep-alt-iso8859-2-24 -rv +sb -n $name -ls -e $0 $uid term" + +case $uid in +a) g="100x43+100-20"; f="neep-alt-iso8859-2-24" ;; +*) g="80x25+100+100"; f="neep-alt-iso8859-2-18" ; echo "*** default ***" ;; +esac + +term="xterm -geometry $g -name $name -fn $f -rv +sb -n $name -ls -e $0 $uid term" +echo "*** using term: $term ***" if [ ! -e $id_f ] ; then $term else id=`cat $id_f` info=`xwininfo -id $id` - echo "*** $id from $id_f ***" + echo "*** $id from $id_f = $info ***" test ! -z "$info" && ( op="-unmap" echo $info | grep 'Map State: IsViewable' > /dev/null || op="-pop"