gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.42k stars 292 forks source link

Cannot set shortcut <ctrl><tab> for "Switch to Next Session" in some environments #1913

Open soapergem opened 4 years ago

soapergem commented 4 years ago

Since #1487 was so hastily closed without investigation, I'm opening a new issue. Multiple people have confirmed that this is still a problem on versions as late as 1.9.1 when running in Ubuntu. Personally I can confirm that on Ubuntu 20.04 I have Tilix 1.9.1 installed from the webupd8team/terminix PPA. When I run tilix --version I see this:

Versions
    Tilix version: 1.9.1
    VTE version: 0.60
    GTK Version: 3.24.18

Tilix Special Features
    Notifications enabled=0
    Triggers enabled=0
    Badges enabled=1

When trying to set the "Switch to Next Session" keyboard shortcut to , it doesn't work. Here are my same steps to reproduce from the other issue:

It won't work because the Ubuntu system itself (Gnome? X11? Something else?) seems to capture that input before Tilix does, and interprets it as input that is trying to to do something invalid with the windows, because you hear a generic system alert sound - the same kind of sound which normally indicates "you can't do that."

garrettgibo commented 4 years ago

The shortcuts are explicitly defined in data/gsettings/com.gexperts.Tilix.gschema.xml, with the "Switch to Next session" shortcut being defined at:

https://github.com/gnunn1/tilix/blob/e202a3c47ef389c663f86c708c05e7feaf56ae3b/data/gsettings/com.gexperts.Tilix.gschema.xml#L1101-L1108

In some light testing I've been able to get the ctrl-tab and ctrl-shift-tab shortcuts to work by just manually changing the file.


The issue you mentioned #1487 also has a comment mentioning that you can also use the dconf editor to manually change the shortcut.

mojason-81 commented 3 years ago

I'm having this exact same issue.

Pop!_OS 20.04

Versions Tilix version: 1.9.1 VTE version: 0.60 GTK Version: 3.24.20

Tilix Special Features Notifications enabled=0 Triggers enabled=0 Badges enabled=1

Seems like a really old bug. Would be nice if this were fixed.

sangwoo-joh commented 3 years ago

I'm still having this issue on Tilix 1.9.1 on my Ubuntu Budgie 20.04!

luixal commented 2 years ago

Hi,

I'm using EndevourOS (arch linux distro) and this tilix version:

Versions
Tilix version: 1.9.5
VTE version: 0.68
GTK Version: 32434

And also have this issue. Impossible to set ctrl+tab shortcut.

As @garrettgibo commented, I looked for that file in my installation (in my case it's placed in /usr/share/glib-2.0/schemas/) but changing it did nothing (maybe it's saved in another place?). "Funny" thing, I noticed this comment just above the win-switch-to-next-terminal shorcut:

<!-- Can't use accelerators with tab, may need to hardwire this in VTE -->

So I guess it's a known issue that would be fix somehow.

Would be nice to have this :)

ronny-rentner commented 5 months ago

I have the same issue. So +1 for fixing it :)