2

I've written a short script to start vcxsrv then run bash -c -l "DISPLAY=:0 terminator" and after a moment the terminal launches, however when I toggle the hide_window hotkey in terminator (I've customized it to use ctrl+`, but the default doesn't work either) it will hide the terminal, but the same key combination will not show the terminal unless an x11 app is active on the screen.

Is there any way to send ctrl+` to vcxsrv to show my terminal?

0

2 Answers 2

1

Ensure xdotool is installed in your system

sudo apt-get install -y xdotool

Then create an autohotkey script:

^`::
    Run, bash -c "DISPLAY=:0 xdotool key ctrl+grave", , Hide
Return

this captures the ctrl+` and replays it to the X server through a hidden bash window.

1
  • 1
    For whatever reason using Hide doesn't work for me. I'm guessing it has something to do with stdio/interactive, but Min works and it's only a slight flicker that I'm fine with dealing with. Run,bash.exe -c "DISPLAY=:0 xdotool key ctrl+grave",,Min
    – Skinner927
    Commented Aug 8, 2019 at 15:53
0

Here's a quick ad hoc measure:

While your Terminator window A is hidden start up a new Terminator window B. In window B, hit ctrl+` (or ctrl+alt+a if you still have the default keybinding for hide_window). This should toggle visiblity on both windows, with the result that A is visible and B is hidden.

(You might clean up B with kill if you cared to do so.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .