4

pretty much the title. I searched a bit, but all I could find is the standard settings. I come from Linux, where this thing is built in, but I expect there is some tool I can use to achieve this.

Yotam
  • 629
  • 2
  • 9
  • 18

2 Answers2

8

First you may read info on how to set default shortcuts: Shortcuts for switching keyboard layout

On Windows 10 there is a new feature: you can switch with ⊞ Win+Space (just test and see)

Here is an approach with Caps Lock for Windows 7: Capslock to switch layout
Similar AHK script works on Windows 10 as well.

To summarize tested and working Autohotkey approaches:

###Option 1. Bind Caps Lock to simulate Alt+Shift

First make sure that Alt+Shift is the default key combo. Use this AHK script:

capslock::
    send {Lalt down}{Shift}{Lalt up}
return 

###Option 2. Bind Caps Lock to the new ⊞ Win+Space combo

I'd prefer this because it gives good visual feedback when switching.

Here is the script to bind it to Caps Lock:

sel := 0

#if (sel=0)
capslock::
    send {lwin down}{Space}
    sel := 1
return 
#if

capslock up::
    send {lwin up}
    sel := 0
return 
Jackdaw
  • 1,087
  • 2
  • 6
  • 19
Mikhail V
  • 973
  • 5
  • 13
  • I had issue with these solutions on Win10 where real caps lock state was changing even if AutoHotkey had captured key presses. Turns out, caps lock state should be explicitly switched off (taken from [similar question](https://superuser.com/a/431302/967860)): `SetCapsLockState, AlwaysOff`,`+CapsLock::CapsLock` – umi Dec 11 '20 at 08:30
0

I'm assuming you mean switching between the standard qwerty,azerty etc. keyboard layouts and not between any custom mapping presets. If you have those different keyboards installed for your selected language in the Region & Language settings you should be able to quickly switch between them with win + space shortcut.

Gytis
  • 119
  • 6
  • 1
    No, I actually mean switching between languages. I prefer the use of a single key over dual key, and I have almost no use for the capslock key to justify keeping it there. – Yotam Jul 16 '18 at 18:39