34
submitted 10 months ago* (last edited 10 months ago) by pathief@lemmy.world to c/linux@lemmy.ml

I use a keyboard with an american layout because I find it much much better for programming. However, since I'm portuguese, I want to use some characters that don't exist in the american layout, such as á, é or ç. In windows I selected the US international layout with with dead keys and I could do everything.

  • ' + a = á
  • ' + c = ç

The US International with dead keys on linux mostly works but has some weird problems, or different behavior:

  • ' + s = ś, I expected it to be 's. Ś doesn't exist in my regional dictionary. It is a problem when typing It's, which is transformed into itś. I could perform a space after pressing ' and it works, but I'm just not accustomed to do that.

  • ' + m = ḿ, same problem as before.

  • ' + c = ć, I expected it to be ç

  • ' + t = ´t, I expected it to be 't

I found a workaround for the cedilla, that works on most apps but not on all. Is there a way to change this behavior system-wide? Maybe I can create my own "custom layout"?

EDIT: of course right after I post this I finally find a solution. I love that it's just a dot file I can bring with me anywhere. Gonna leave the post up anyway, in case anyone ever has the same problem.

you are viewing a single comment's thread
view the rest of the comments
[-] tal@lemmy.today 2 points 10 months ago* (last edited 10 months ago)

Another option -- if you only care about a US English layout for programming, have you considered just using a programming editor that has an input method friendly to that?

I kind of go the other way -- I'm in the US, and would like to have a way for inputting some things like Latin-1 stuff occasionally. Emacs has a lot of convenient input methods designed for this, inputting stuff on a US keyboard. And it seems almost certain to me -- there is no single standardized keyboard layout spanning Europe, so any European programmers must run into this -- that many programming editors must have application-level input support.

[-] pathief@lemmy.world 3 points 10 months ago

I actually have grown to hate the Portuguese layout, or ISO in general. Why is the enter key so damn big? I currently own a Happy Hacking Keyboard 2 and can't imagine living without it.

this post was submitted on 26 Oct 2023
34 points (92.5% liked)

Linux

47343 readers
1383 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS