Script is for any system with an X11 implementation. Help to change case of text or remap letters following current layout.
It is script which must be setted to hotkeys for correct work. It have such abilities as change selected text to upper, lower or switch case. Also this script remap chars according current layout. This help you fluent change miswritten text and rewrite it.
For me good hotkeys was:
- Ctrl + Alt + 1 -- for remapper
- Ctrl + Alt + 2 -- for upper
- Ctrl + Alt + 3 -- for lower
- Ctrl + Alt + 4 -- for swapcase
- Ctrl + Alt + 5 -- for capitalize
- Remapper in action:
- Adding new layout:
NOTE: this is specified as program only for usage with hotkeys because you must run program when text which must be edited is selected.
SYNOPSIS
python remapper.py [OPTIONS]
OPTIONS
-h, --help
Show short info about options
-u, --upper
Set selected text to upper case
-l, --lower
Set selected text to lower case
-s, --swapcase
Swap case of selected text
-r, --remapper
Remap chars of selected text following current layout
-c, --capitalize
Change all first letters of selected text to capital leters
-a, --add
Added new layout to file
X-Server : any implementation of X11
Utility : xclip
Program : xkblayout-state
NOTE: All of the above requirements must be met on your computer.
LINKS:
xclip needed for comunication beetween primary section and clipboard
xkblayout-state needed for change keyboard layout and get layouts name
Make git clone of this repo.
Run chmod u+x remaper.py
Set hotkeys for necessary options.
Example of command/URL, setted as custom hotkeys action:
/path/to/script/remapper.py -s
MIT License
See LICENSE.md
for detail information.