If you are comfortable with the XWin-Menu, you can expand that by editing /etc/X11/system.XWinrc
:
// Make some menus... menu apps { xterm exec "xterm" "Emacs" exec "emacs" notepad exec notepad xload exec "xload -display %display%" # Comment urxvt exec "urxvt" # <- added by me }
After saving, don't forget to Reload XWinrc
to apply changes.
However, I use the following approach (I wanted to pin URxvt to the taskbar) -- it sounds really cumbersome, and it probably is... but hey it's Windows ;)
First, I created a c:\cygwin\cygwin.bat
@echo off C: chdir C:\cygwin\bin zsh --login -i -c 'urxvt'
Adapt path and shell to your situation.
To configure the appearance of URxvt I use these lines in .Xdefaults
:
URxvt.borderColor: black URxvt.internalBorder: 4 URxvt.background: black URxvt.foreground: orange ! URxvt.inheritPixmap: True ! URxvt.shading: 40 ! URxvt.tintColor: orange URxvt.scrollBar: False URxvt.geometry: 150x60+500+100 URxvt.font: -*-clean-bold-r-normal-*-17-*-*-*-*-*-*-*
change to your preferences or uncomment with !
if you like the default.
Then I created a shortcut (also in C:\cygwin
) so that I can customize the icon and renamed that shortcut to ZSH_tray
. This shortcut gets pinned to the taskbar.
My main problem was (and probably yours, too) is, that there is a shell windows in addition to the URxvt window. To prevent that I use Tray-It:
- Install & start Tray-It
- Start URxvt via the shortcut
- In Tray-IT:
- right click the corresponding entry -> Place in Systray
- Edit -> Profiles
- Config according to screenshots
- Hide Tray-It itself and start it with windows (Edit -> Options)