Skip to content

gagbo/go-xkb-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helper binary to install xkb keyboard layouts

This script notably helps to install a new ruleset within the only file that actually gets parsed by the system to list the available layouts.

Usage

Once the binanry gets properly installed (from a binary on the release page)

xkb-install -h

Meanwhile to quickly iterate and test it, here's an example

go run . -S fr -V optimot_ergo -d "French (Optimot, clavier Ergo)" --compose=./Optimot-Compose.txt ./Optimot-Ergo.xkb
# Alternatively
xkb-install -S fr -V optimot_ergo -d "French (Optimot, clavier Ergo)" --compose=./Optimot-Compose.txt ./Optimot-Ergo.xkb

The Optimot-Ergo.xkb file is expected to have symbol data about the variant like

xkb_symbols "optimot_ergo" {
    ...
};

Features

  • Idempotent
  • Makes a layout available in system dropdowns

Extra details:

  • [-] Install an extra XkbSymbols table in the /usr/share/X11/xkb/symbols/XX file
  • Add extra variants in the evdev.lst file under the XX symbol
  • Add extra variants in the evdev.xml file under the XX layout/symbol
    • edit the XML file in tree
    • backup the old file with a timestamp
    • write the new file after getting sudo rights
  • Install an optional .Xcompose file in the home of $USER

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages