X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=bin%2Fbin%2Fwww;h=b92ce8ae26d0786073560d84f6d64195f1769835;hp=a7a62626105592a244d0186bb7c25f8ea7143d3a;hb=1dc248a36734b5f40d07f046945d8c3e5bdb0660;hpb=defd8b265987ee6ecd69cf9af313ce8f13e139dd diff --git a/bin/bin/www b/bin/bin/www index a7a6262..b92ce8a 100755 --- a/bin/bin/www +++ b/bin/bin/www @@ -1,5 +1,9 @@ #!/bin/sh -winid=`NOTABSTART=$NOTABSTART start-tabbed.sh lynx -f start-lynx.sh` -[ $# -gt 0 ] || exit 0 -exec ~/bin/start-lynx.sh $winid $@ +if tmux has-session -t www 2> /dev/null ; then + tmux new-window -t www "lynx $@" +else + tmux new-session -d -s www "lynx $@" + tmux set-option -t www default-command lynx + DISPLAY=:0 CMD="tmux attach-session -t www" CMDTITLE="Terminal9" $HOME/bin/dwm-term & +fi