/[scripts]/trunk/dwm-popup
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/dwm-popup

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 45 by dpavlin, Sun Jul 29 11:12:42 2007 UTC revision 46 by dpavlin, Thu Aug 2 09:58:43 2007 UTC
# Line 5  test -z "$uid" && uid="null" Line 5  test -z "$uid" && uid="null"
5  name="dwm-popup-$uid"  name="dwm-popup-$uid"
6  id_f="/dev/shm/$name.id"  id_f="/dev/shm/$name.id"
7    
8  if [ "$2" == "term" ] ; then  function start() {
9          id=`xwit -current -print | cut -d: -f1`          id=`xwit -current -print | cut -d: -f1`
10          echo "*** uid $uid id $id to $id_f ***"          echo "*** start uid $uid id $id to $id_f ***"
11          echo $id > $id_f          echo $id > $id_f
12            $@;
13            rm -f $id_f;
14            exit
15    }
16    
17    if [ "$2" == "term" ] ; then
18          case $uid in          case $uid in
19          a) exec screen -R -S $name ;;          a) start screen -R -S $name ;;
20          s) exec screen -R -S $name irssi ;;          s) start screen -R -S $name irssi ;;
21          *) echo "*** default fallback for $uid ***" ; exec bash ;;          *) start bash ;;
22          esac          esac
23  fi  fi
24    
# Line 23  a) g="100x43+100-20"; f="neep-alt-iso885 Line 28  a) g="100x43+100-20"; f="neep-alt-iso885
28  *) g="80x25+100+100"; f="neep-alt-iso8859-2-18" ; echo "*** default ***" ;;  *) g="80x25+100+100"; f="neep-alt-iso8859-2-18" ; echo "*** default ***" ;;
29  esac  esac
30    
31  term="xterm -geometry $g -name $name -fn $f -rv +sb -n $name -ls -e $0 $uid term"  xterm=`which rxvt-2.7.10 || whixh rxvt`
32    term="$xterm -geometry $g -name $name -fn $f -rv +sb -n $name -ls -e $0 $uid term"
33  echo "*** using term: $term ***"  echo "*** using term: $term ***"
34    
35  if [ ! -e $id_f ] ; then  if [ ! -e $id_f ] ; then

Legend:
Removed from v.45  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.26