]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/www
Open accidentally closed www
[dotfiles.git] / bin / bin / www
1 #!/bin/sh
2
3 term() {
4     DISPLAY=:0 CMD="tmux attach-session -t www" CMDTITLE="Terminal9" $HOME/bin/dwm-term &
5 }
6
7 if tmux has-session -t www 2> /dev/null ; then
8     tmux new-window -t www "lynx $@"
9     attached=`tmux list-sessions -F "#{session_attached}" -f "#{==:#{session_name},www}"`
10     [ "$attached" != "0" ] || term &
11 else
12     tmux new-session -d -s www "lynx $@"
13     tmux set-option -t www default-command lynx
14     term &
15 fi