Code Monkey home page Code Monkey logo

Comments (3)

RedBearAK avatar RedBearAK commented on August 18, 2024

@Wuffz

FYI: I'm not the Kinto dev, but I've been using it for years and now maintain a sort of offshoot of Kinto that was mostly created to experiment with Wayland support, and I've contributed a few things to Kinto's config. Like the keymaps to make Linux file managers act more like the Finder.

The problem here is most likely just that the "application class" or WM_CLASS attribute of the Termius terminal windows is not in the "terminals" list of app classes. So the first step is identifying the app class so it can be added to that terminals list.

Post the output of the command below, after you run it and then click on any Termius window. The mouse cursor should change to a cross, indicating that it is waiting for you to click on a window. Then you will see the requested window attributes appear in the terminal. If you don't have this command available, try to install the xprop package for your distro.

xprop WM_CLASS _NET_WM_NAME WM_NAME

After this app class is found and added to the appropriate list in the Kinto config file, you should be able to restart Kinto and have most of the typical shortcuts working correctly in Termius windows, in the same way they would work in most other Linux terminal apps.

If there are remaining shortcuts that still don't respond the same way under Kinto as they do on macOS, there may also be a need for a keymap specific to Termius to fix those. That is another relatively simple fix.

from kinto.

RedBearAK avatar RedBearAK commented on August 18, 2024

@Wuffz

I was thinking of this as just a terminal, but it's more like a terminal session/SSH multiplexing app, I think. So it may not be easy to really make shortcuts always act appropriately, if it is sometimes a terminal and other times a kind of "remote desktop" app, which Kinto deals with by disabling all of the normal remapping it does.

My offshoot of Kinto uses a fork of the keymapper that supports matching on the window title, which appears to change to say things like "Local Terminal", so the remaps could be customized depending on what the app is currently setting the window title to. But Kinto can't do anything like that. It can only match on the app class.

In any case, the app class in Wayland is "Termius" and the WM_CLASS in X11/Xorg is probably the same, so you could add it to the terminals list in the Kinto config file like this, and see if that is sufficient:

terminals = [
    "alacritty",
    "cutefish-terminal",
    "deepin-terminal",
    "eterm",
    "gnome-terminal",
    "guake",
    "hyper",
    "io.elementary.terminal",
    "kinto-gui.py",
    "kitty",
    "Kgx",                      # GNOME Console terminal app
    "konsole",
    "lxterminal",
    "mate-terminal",
    "org.gnome.Console",
    "roxterm",
    "qterminal",
    "st",
    "sakura",
    "station",
    "tabby",
    "terminator",
    "termite",
    "Termius",
    "tilda",
    "tilix",
    "urxvt",
    "xfce4-terminal",
    "xterm",
    "yakuake"
]

The config file is ~/.config/kinto/kinto.py. Save the change and restart Kinto to see how it works.

The Termius app is unfortunately only provided as a DEB package or a Snap, so I had to set up an Ubuntu distrobox container in order to run it on Fedora.

from kinto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.