Live data from Hacker News

Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

flickey.site

21–30 of 49 posts

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#21
post #7

Yeah I want this. I acquired a keyboard for a language I’m learning and was disappointed that I couldn’t physically switch my hands between keyboards to use the other’s layout. I thought the computer would be smarter, mais non.

Huh, an idea would be physical buttons that a program listens to, and when you hit the key, the program sends a message to the OS to switch the keyboard layout to a particular one. So an Elgato Stream Deck or Razer Stream Controller. So you'd have a button for each keyboard layout, and you'd just have to form the habit of smashing the key for e.g. Russian before typing a message in Russian. For a more complicated sol…

I’ve mapped Caps Lock to EN and Shift + Caps Lock to RU. Really stopped thinking about “what keyboard layout is on rn”, just subconsciously press Caps every time I start typing something in English. Pretty easy to replicate with Karabiner on macOS (and on Linux it’s supported out of the box).

If you really want a dedicated keyboard though yeah, would be a bit harder but might be possible to do something with Karabiner as well. The device_if condition might work here: https://karabiner-elements.pqrs.org/docs/json/complex-modifi...

Edit: this might work but I haven’t tried:

    {
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "any": "key_code",
            "modifiers": { "optional": ["any"] }
          },
          "to": [
            { "select_input_source": { "language": "^ja$" } },
            { "from_event": true }
          ],
          "conditions": [
            {
              "type": "device_if",
              "identifiers": [{ "vendor_id": 1111, "product_id": 2222 }]
            }
          ]
        }
      ]
    }

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#22
Wow! I didn't think anyone on the mac cared about this. It was one of many annoyances that keeps me off that platform.

On Windows, there's a setting under "Advanced keyboard settings” called “Let me use a different input method for each app window.”

I can keep this turned on and if I'm writing a document in Word in עברית and I have my broswer open in English, I can switch back and forth and not have to hit WIN+SPACE to swap lanaguages.

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#23
post #3

I type in 4 languages on my Mac (en/hu/de/ro) and 7 on my iPhone (+ru/cn/fr) So I guess I'm pretty much the perfect audience here. Every time I code I get mildly enraged by having typed é or ö instead of a semicolon. Will definitely give this a go. I really like the (lack of a) business model, too, I hope some people will appreciate your efforts. This was probably my favourite bit. All these small apps that somehow n…

I wonder how dramatic it is within latin languages. as you mentioned on macOS you only use latin typesets. For those things most annoying are spelling mess ups, but I mostly use English keyboard and long press when I need to write things like papanaşi (ro) or buñuelos (es). (but I get those red dotted lines).

My pet peeve with Gboard on Android is that long press does not work for Hungarian duuble-acute letters (ő and ű).

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#24

This seems like a giant security issue.

Don't give it internet access if you're worried about keylogging. Seems like a complete non-issue if you take any responsibility for your own security at all.

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#25

Generally speaking, it feels like there just aren't enough features for multilingual users on any major operating system. Fast virtual keyboard switching is nice on iOS, but basically everywhere else, it's hard as a bi- or trilingual user. So many times do I want live subtitles in multiple languages, at least two, simultaneously. Or vision capabilities to view something without translating a whole block of a UI or a…

>So many times do I want live subtitles in multiple languages, at least two, simultaneously.

I'm curious, what's your use-case for this?

Re: Made a free macOS menu bar app that fixes typing in the wrong keyboard layout

#29
post #3

I type in 4 languages on my Mac (en/hu/de/ro) and 7 on my iPhone (+ru/cn/fr) So I guess I'm pretty much the perfect audience here. Every time I code I get mildly enraged by having typed é or ö instead of a semicolon. Will definitely give this a go. I really like the (lack of a) business model, too, I hope some people will appreciate your efforts. This was probably my favourite bit. All these small apps that somehow n…

I wonder how dramatic it is within latin languages. as you mentioned on macOS you only use latin typesets. For those things most annoying are spelling mess ups, but I mostly use English keyboard and long press when I need to write things like papanaşi (ro) or buñuelos (es). (but I get those red dotted lines).

A lot depends on using a national keyboard. I use ABC - Extended as my default keyboard and turn off long press because I don’t like it, since I’d rather type ş with opt-c s and ñ with opt-n n (I’d say I type maybe 85% English, 14% Spanish and 1% Czech or Slovene), but some people prefer national keyboards for non-English which make diacriticalized letters more ergonomic at the expense of making some punctuation or symbols less accessible (I was just talking with my ex-wife who writes a lot more Spanish than I do about convenient/inconvenient keyboard layout changes—she uses the globe key switching which I avoid because like long press, I don’t like it, especially since I use it often as a fn key and the other functionality often get triggered by mistake until I disabled it).
Post reply on HN