generalize func.sh; only start tmux on local graphical session