Search code examples
cygwinxtermxlaunch

Cygwin shortcut to start xterm


I've been using cygwin for very long time. Back in the day, we used to be able to create a shortcut and it automatically starts X and starts an Xterm with the preferences saved in a file.

Today, I'm finding myself launching xlaunch, and then clicking throw a few dialogs to start xterm. Is there a way I can shortcut all this and just click one shortcut to get the result?

Thank you


Solution

  • Solution using startxwin that belongs to xinit package Create you customized script from the baseline:

    cp /etc/defaults/etc/X11/xinit/startxwinrc ~/.startxwinrc
    

    remove a bit of the duplication at the begin of ~/.startxwinrc to avoid a recursive call and at the end add how many xterm calls you want before the Menu manager.

    /usr/bin/xterm  &
    exec /usr/bin/xwin-xdg-menu