I am currently using this to launch mutt
or irssi
:
urxvt -name Irssi/Mutt screen -r Irssi/Mutt
Currently I have to do the following before using my launcher:
screen -S Irssi/Mutt irssi/mutt + Ctrl-a-d
What I am looking to do is:
if [ test_to_see_if_the_screen_exit ] # I need a way to the test
then
urxvt -name Irssi/Mutt -e screen -r Irssi/Mutt
else
create_the_screen_named_Irssi/Mutt_and_detach_it # I need a way to create it
urxvt -name Irssi/Mutt -e screen -r Irssi/Mutt
endif
Does anyone have a solution?