forked from nevillepark/yiddish-keys-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·40 lines (32 loc) · 1.17 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# Installer for Yiddish keyboard map.
#
# http://www.shretl.org
# Run ./install.sh
# Then activate via Settings -> Keyboard -> Keyboard Layouts -> add layout
##########################################################################
# Copy Yiddish layout file into relevant directory
sudo cp yi /usr/share/X11/xkb/symbols/yi &&
sudo chown root:root /usr/share/X11/xkb/symbols/yi &&
# Add Yiddish to rules/evdev.xml
sudo sed -i 's_<\/layoutList>_<layout>\
<configItem>\
<name>yi</name>\
<shortDescription>yi</shortDescription>\
<description>Yiddish</description>\
<languageList>\
<iso639Id>yid</iso639Id>\
</languageList>\
</configItem>\
</layout>\
</layoutList>_g' /usr/share/X11/xkb/rules/evdev.xml &&
# Add Yiddish to rules/evdev.lst
sudo sed -i '/yi Yiddish/d; // cleanup
s_il Hebrew_il Hebrew\
yi Yiddish_g' /usr/share/X11/xkb/rules/evdev.lst &&
# Say nice things
echo '
Success! The Yiddish keyboard map has been installed.
To activate it in your operating system, see Settings -> Keyboard -> Keyboard Layouts -> add layout
See http://www.shretl.org for more information.
'