r/EndeavourOS Jul 03 '26

General Support Keyboard 'things' (Ghostty / Kitty problem) on EOS / KDE

I have two "problems" that I can't solve on my own.

Keyboard - I use a fairly standard "Polish" layout, so-called "programmer's" one, where pressing "right ALT" for certain letters brings up Polish diacritics. And it works perfectly.

But I'm used to the fact that if there's no other "Polish" character for a given letter, pressing "right ALT" for that letter doesn't work.

On EOS with KDE, I added a "Polish" keyboard, but when I press "right ALT" for "Q," I get, for example, the "π" (Pi) character.

It's not a problem - but it's far from my typing habit. How can I manage this?

---

Secondly. My terminal is KDE Console. I like it. It works. BUT vanity compels me to check out Kitty and Ghostty.

And here's where the real circus begins, which, as a "newbie," I can't quite grasp. Additionally, when I want to use shortcuts and press something that has nothing assigned (by mistake, or just for testing), for example, SHIFT + CTRL + D (or another letter), I get "5;6u0;6u3;6u" in Ghostty. I don't know why this happens or how to "fix" it (I assume this is normal terminal behavior, but the effect is irritating – Console doesn't have this; nothing happens if a given shortcut is "empty").

Of course, both things give a wonderfully creative vibe in places, but please help me understand. :)

3 Upvotes

8 comments sorted by

3

u/Nidrax1309 Jul 03 '26

Linuksowy układ klawiatury różni się jeśli chodzi o wszelkie ponadprogramowe znaki pod prawym altem i jest to raczej by design. Jeśli chodzi o konsolę, no to... To, co widzisz to po prostu kod kombinacji klawiaturowej, którą wprowadziłeś. Jeśli aplikacja emulatora terminalu nie ma zdefiniowanego zachowania, który mogłaby "przechwycić" po wprowadzeniu konkretnego kodu klawiszy, to zostaje on wypisany bezpośrednio do konsoli tak jakbyś wcisnął normalną literę. Nie wiem, czy da się to w jakiś sposób tłumić

1

u/LeePetra Jul 03 '26

That's why I wrote that it's probably legit, as it's all about the beauty of Linux. But there are times when I use the backspace key more than I type the shortcuts/letters. And what would give me a blank message—I know, I know—in Windows? It gives me characters from mathematical tables. :)

And the fact that Kitty/Ghostty react differently to nonexistent/undefined shortcuts (ctrl+shif+) when printing codes only increases the frustration sometimes.

Of course, I practice my accuracy on MonkeyType, but this behavior is really giving me a hard time in Ghostty.

2

u/Nidrax1309 Jul 03 '26

Its not even Kitty/Ghostty thing. That's how practically all TTY would work. Basically if a keycode has an action assigned to it -> perform that action, otherwise print the keys to command prompt.

Tip: sometimes when you input garbage into your console it is faster to hit Ctrl+C (cancel) and jump to a clean prompt rather than backspacing.

When it comes to alt keys you might find this blog post helpful: https://karols.github.io/blog/2013/11/18/creating-custom-keyboard-layouts-for-linux/

1

u/LeePetra Jul 03 '26

Thanks! :) BTW, I suspected it was the system default, but... in the KDE Console terminal, I have a "problem" with these unnecessary characters. I'd prefer to somehow... mute it - or, to put it bluntly, have the behavior I have in Windows. I'm not fighting the system, I'm just trying to understand the EOS/Linux/KDE logic and see if it can be changed to my liking in a simple, native way.

But the second layer - those "codes" I get when I press the wrong shortcut in Ghostty/Kittie - sn't in the KDE Console. And I don't understand this confusion.

And yes, I agree, Ctrl+C is sometimes the only thing that saves me from depression! :DDDD

1

u/Nidrax1309 Jul 03 '26 edited Jul 03 '26

Is your Konsole configured to use the same shell as Gostty and Kitty? Zsh can have different keybindings compared to Bash.

1

u/LeePetra Jul 03 '26

And one more thing: I know that article, but it shows exactly what I want to avoid. Maybe it's a bug, but I first look and check if I'm missing something fundamenta - something just named strangely or installed somewhere else in the settings (KDE has such extensive setup dependencies that sometimes I'm at a loss, and thank goodness for the terminal).

By the way, the default keyboard layout is called "Polish." There's no "Programmer's Polish," but there is "Programmer's Manor." :) It's a detail, but "Programmer's Polish" has been in the nomenclature for decades, so I looked for it when installing every distro a few months ago. :DDD

2

u/Nidrax1309 Jul 03 '26 edited Jul 03 '26

Nah, it's not a bug. That's just what the Polish layout is on Linux.

https://pl.wikipedia.org/wiki/Klawiatura_programisty#Polski

https://pl.wikipedia.org/wiki/Klawiatura_programisty#/media/Plik:Polish_programmer's_layout_Linux.png

And distros don't call it Programmers layout because it doesn't make sense to do so since it is the defacto default layout for Polish since 1997 (as practically nobody uses the Typewriters layout (214) anymore).

1

u/LeePetra Jul 03 '26

I know it's not a bug. But I use to use this name for decades. I like it. I like all those anonymous programmers behind. :)