Skip to content

About

Mac Keyboard .keylayout File Generator

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac Keyboard Generator

Instead of writing the XML of the .keylayout file for macs, this will generate it for you.

TODO: specify all the features of the XML file.

const fs = require('fs')
const toKeyboardXML = require('@lancejpollard/mac-keyboard.js')

const string = toKeyboardXML({
  name: 'MyLang',
  keyboards: [
    {
      standard: toKeyboardXML.ANSI,
      control: true,
      bindings: [
        {
          sequence: ['e'],
          result: 'e'
        }
      ]
    }
  ]
})

fs.writeFileSync('MyLang.keylayout', string)

About

Mac Keyboard .keylayout File Generator

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages