tilix icon indicating copy to clipboard operation
tilix copied to clipboard

No Focus

Open iomari opened this issue 2 years ago • 2 comments

Greetings, One annoying issue. Whenever I drop down tilix, the terminal doesn't have focus. I always have to click on the terminal before typing. Is there a setting for this? Is it a bug or am I doing something wrong? I'm on kubuntu 22.04.

tilix --version
Versions Tilix version: 1.9.4 VTE version: 0.68 GTK Version: 3.24.33

iomari avatar Jul 22 '22 09:07 iomari

I have this problem too, when I toggle tilix with 'tilix --quake' it becomes no focus if another application has the focus yet. I would like that tilix graps the focus in this case. I also tried with 'tilix --quake --focus-window' for the keyboard shortcut, but sadly it makes no difference.

tilix --version Versions Tilix version: 1.9.5 VTE version: 0.74 GTK Version: 3.24.38

reuschling avatar Oct 24 '23 12:10 reuschling

I have found a workaround:

  • Give Tilix a static Window title, e.g. 'TilixYeah' (preferences->appearance->App title)
  • Use this as command for the quake hotkey: bash -c 'tilix --quake;xvkbd -window "TilixYeah" -text "\A\e"'

This sends 'Alt+Esc' to the shell which gives the current Tilix window the focus. Since xvkbd sadly sends the event to the current focus window instead if Tilix is not visible , I send 'Alt+Esc' which should not have any impact in most cases.

I tried to give focus with python xlib, xdotool, wmctrl and devilspie, but without success. xvkbd has to be installed of course.

Hope this helps a bit!

reuschling avatar Oct 24 '23 15:10 reuschling