diff options
-rwxr-xr-x | xsh | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -16,13 +16,22 @@ function termwrapper () { # da_*) LANG=da;; # esac - if [ "x$PRG" != "x" ]; then -# if [ -z $PRG ]; then - rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG & +# case `readlink /etc/alternatives/x-terminal-emulator | xargs basename` in +# rxvt*) +# opts="+sb -sl 500 -n \"$title\" -title \"$title\"" +# ;; +# esac + + if [ -n "$PRG" ]; then +# rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG & # exec rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG + x-terminal-emulator +sb -sl 500 -n "$title" -title "$title" -e $PRG & +# x-terminal-emulator $opts -e $PRG & else - rxvt +sb -sl 500 -n "$title" -title "$title" & +# rxvt +sb -sl 500 -n "$title" -title "$title" & # exec rxvt +sb -sl 500 -n "$title" -title "$title" + x-terminal-emulator +sb -sl 500 -n "$title" -title "$title" & +# x-terminal-emulator $opts & fi } |