colemak-tr/LINUX.md

76 lines
2.4 KiB
Markdown

# Install on Linux
<span><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="none"
style="vertical-align: sub;" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path
class="st0" d="M2,16c0.1,0,8-5,9-7c0.6-1.3,1-5,1-5h3H1h7V1" /><line
class="st0" x1="4" y1="8" x2="12" y2="16" /><polygon class="st0"
points="15,19 21,19 23,23 18,11 13,23 " /></svg> : [türkçe](LINUX.tr.md), [中文](LINUX.zh-CN.md), [español](LINUX.es.md), [العربية](LINUX.ar.md), [português](LINUX.pt.md), [русский](LINUX.ru.md), [bahasa](LINUX.id.md), [български](LINUX.bg.md), [esperanto](LINUX.eo.md)</span>
---
First, backup some files. Run these commands:
```bash
cp /usr/share/X11/xkb/symbols/tr /usr/share/X11/xkb/symbols/tr.old
cp /usr/share/X11/xkb/rules/evdev.xml /usr/share/X11/xkb/rules/evdev.xml.old
```
Open file `/usr/share/X11/xkb/symbols/tr` and append the following text block at the end of the file
```
// github.com/salif/colemak-tr
partial alphanumeric_keys
xkb_symbols "colemak_tr" {
include "us(colemak)"
name[Group1]= "Turkish (Colemak)";
key <AD01> {[ odiaeresis, Odiaeresis, q, Q ]};
key <AD02> {[ scedilla, Scedilla, w, W ]};
key <AD10> {[ gbreve, Gbreve, semicolon, colon ]};
key <AD11> {[ udiaeresis, Udiaeresis, bracketleft, braceleft ]};
key <AD12> {[ apostrophe, quotedbl, bracketright, braceright ]};
key <AC09> {[ i, Iabovedot ]};
key <AC11> {[ idotless, I ]};
key <AB02> {[ ccedilla, Ccedilla, x, X ]};
include "level3(ralt_switch)"
};
```
Open file `/usr/share/X11/xkb/rules/evdev.xml` and insert the following text block after the `Turkish (Alt-Q)` variant.
```xml
<variant>
<configItem>
<name>colemak_tr</name>
<description>Turkish (Colemak)</description>
</configItem>
</variant>
```
Then add `Turkish (Colemak)` via the settings of your desktop environment.
## Uninstalling
To uninstall undo everything you did or restore the old files:
```bash
mv /usr/share/X11/xkb/symbols/tr.old /usr/share/X11/xkb/symbols/tr
mv /usr/share/X11/xkb/rules/evdev.xml.old /usr/share/X11/xkb/rules/evdev.xml
```
## Updating
Uninstall the old version and install the new version.
---
This page contains automatically translated text
---
[← Back](./README.md)