How to customize ubuntu persian keyboard layout to be like windows
- first go to xkb folder
cd /usr/share/X11/xkb/symbols
- make backup of persian symbol file
cp ./ir ./ir-backup
- copy
ir
file below and then modify symbols file
sudo gedit ./ir
- make backup of layout declaration
cd /usr/share/X11/xkb/rules
cp ./evdev.xml ./evdev-backup.xml
- Add the new layout declaration to /usr/share/X11/xkb/rules/evdev.xml (or copy
evdev.xml
file and paste it there)
sudo gedit ./evdev.xml
add this line after Persian (with Persian keypad)
section
...
<variant>
<configItem>
<name>pes_win</name>
<description>Persian (Windows layout)</description>
</configItem>
</variant>
...
- now logout and when you log back, go to
settings > Region and language
(or where ever your keyboard perference is) and in input sources click on+
button and search forPersian (Windows layout)
, and add it.