Skip to content

ysoftwareab/xkb-for-macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PC Keyboard Layouts for MacOS (xkb based)

Thanks to klfc, we converted all keyboard layouts from an Ubuntu 20.04 distribution (X11 xkb) to MacOS (keylayout).

Outcome: type on your Mac the same way you would type on a PC.

Installation

Copy y-xkb-<language>.* to your ~/Library/Keyboard Layouts folder, or /Library/Keyboard Layouts to install for all users, and then activate the ysoftwareab xkb <language> via System Preferences - Keyboard - Keyboard (tab) - Input Sources.

But why?

The reasons stem from the Swedish keyboard layout on MacOS.

Basic keys for programming are a killer to reach:

  • | is Right Option + 7
  • \ is Shift + Right Option + 7
  • { is Shift + Right Option + 8
  • } is Shift + Right Option + 9

Same keys on PC:

  • | is Right Option + <
  • \ is Right Option + +
  • { is Right Option + 7
  • } is Right Option + 0

Similar issues surface in other languages as you can see in Related Work.

What is different from other initiatives is that this is not a manual conversion.

Related Work

License

UNLICENSE