linktohack / evil-xkbswitch

Input method switching corresponds to current state
6 stars 2 forks source link

How to work on windows 11 with spacemacs? #7

Open Tyushang opened 8 months ago

Tyushang commented 8 months ago

How to work on windows 11 with spacemacs?

linktohack commented 7 months ago

I think you will need to customize

(defvar evil-xkbswitch-set-layout (if (eq system-type 'darwin) "issw" "xkb-switch -s")
  "Set xkb layout.")
(defvar evil-xkbswitch-get-layout (if (eq system-type 'darwin) "issw" "xkb-switch")
  "Get xkb layout.")
(defvar evil-xkbswitch--us-method (if (eq system-type 'darwin) "com.apple.keylayout.US" "us")
  "US input method.")

Looks like there is a powershell command to change the language in Windows, so you can try it.

https://learn.microsoft.com/en-us/powershell/module/international/set-windefaultinputmethodoverride?view=windowsserver2022-ps