feat: add linux script

This commit is contained in:
Viktor Varland 2023-06-08 11:48:44 +02:00
parent 588ee4bf92
commit cf104f2f1d
Signed by: varl
GPG key ID: 7459F0B410115EE8
2 changed files with 27 additions and 6 deletions

View file

@ -7,9 +7,22 @@ More information can be found
[here](https://lists.x.org/archives/xorg/2007-July/026534.html) and [here](https://lists.x.org/archives/xorg/2007-July/026534.html) and
[here](https://zuttobenkyou.wordpress.com/2011/08/24/xorg-using-the-us-international-altgr-intl-variant-keyboard-layout/). [here](https://zuttobenkyou.wordpress.com/2011/08/24/xorg-using-the-us-international-altgr-intl-variant-keyboard-layout/).
# Usage ## Usage
## OSX ### Linux
I use a [`setup-inputs.sh`](linux/setup-inputs.sh) script in `.xinitc`
to bootstrap my preferences for keyboard input:
```
xset r rate 200 30
xset m 0 0
setxkbmap -rules evdev -model -evdev -layout us -variant altgr-intl
setxkbmap -option ctrl:nocaps
```
### OSX
``` ```
sudo cp osx/us-altgr-intl.keylayout /Library/Keyboard\ Layouts sudo cp osx/us-altgr-intl.keylayout /Library/Keyboard\ Layouts
@ -19,11 +32,12 @@ A reboot is probably necessary for the new keymap to appear in Preferences/Keybo
This has been tested with OSX Mojave 10.14.6. This has been tested with OSX Mojave 10.14.6.
### Windows
Run the setup.exe file to install the layout, then choose it from the
Keyboard setup app.
# Improvements # Improvements
Basics are here for my own usage but diacritics combinations (dead-keys mode overlappings) are probably missing. Any improvement is welcome. This file has been developped with Ukulele for a US ANSI keyboard. Basics are here for my own usage but diacritics combinations (dead-keys mode overlappings) are probably missing. Any improvement is welcome. This file has been developped with Ukulele for a US ANSI keyboard.
## Windows
Run the setup.exe file to install the layout, then choose it from the
Keyboard setup app.

7
linux/setup-inputs.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
xset r rate 200 30
xset m 0 0
setxkbmap -rules evdev -model -evdev -layout us -variant altgr-intl
setxkbmap -option ctrl:nocaps