Confusing title, I know. Here's the problem:
To launch Urxvt in such a way that my extensions work, I'd open up Cygwin and use
export DISPLAY=:0 and then
urxvt. If I launch urxvt just with
urxvt then various extensions like clipboard don't work since the original Cygwin window that I launched urxvt from receives the extension inputs (which is why
export DISPLAY=:0 is important.
It was annoying to have to open Cygwin everytime I wanted to run a Urxvt window, so I modified my Cygwin.bat from this:
@echo off C: chdir C:\cygwin64\bin bash --login -i
to this to launch Urxvt as my default terminal emulator:
@echo off C: chdir C:\cygwin64\bin urxvt -e /bin/bash --login -i
And it worked fine for launching Urxvt without having to open any other windows, but the only issue is that my extensions don't work since I obviously didn't put
set DISPLAY=:0 somewhere in the process before launching Urxvt.
So my question is, how can I create a shortcut that launches Urxvt but also prefaces the launch with