Skip to content

Little helper for typed text refactoring. Has to be settled on hotkeys.

License

Notifications You must be signed in to change notification settings

Dimonium-239/charm-remapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

charm-remapper

Script is for any system with an X11 implementation. Help to change case of text or remap letters following current layout.

Description

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

Demonstration

  • Remapper in action:

Remapper in action

  • Adding new layout:

Adding new layout

Usage

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

Instalation

Dependencies

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

Setup

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

License

MIT License

See LICENSE.md for detail information.

About

Little helper for typed text refactoring. Has to be settled on hotkeys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages