Text seleciton keyboard layout switcher based on xclip / etc for X11 & wayland
Project description
fleepit
Text seleciton keyboard layout switcher based on xclip / etc for X11 & wayland
Install
- Install required packages:
- X11:
xclip,xdotool - Wayland:
wl-clipboard
- install module:
pip install fleepit
Limitations
X11
Operation is performed in 3 steps:
- copy - copy selection buffer (primary clipboard)
- paste - write converted selection buffer into secondary (regular) clipboard
- send CTRL+C event
Wayland
Operation is performed in 3 steps with limitations
- copy - reads contents of primary buffer
- paste - write converted selection into secondary (regular) clipboard
- user has to manually press CTRL+C - for the security reasons and/or in order to prevent depending on external daemon services that may expose potential keystroke injection vulnerabilities
Usage
Sample usage for KDE:
- Add custom program shortcut in settings
- Fill something like
fleepit --mode x11 --langset qwerty-en-ru - Set some shortcut, for example
CTRL+`
Langset file
Sample langset file:
{
"langset": [
"`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,.~!#%&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>",
"ё1234567890-=йцукенгшщзхъ\\фывапролджэячсмитьбюЁ!№%?*()_+ЙЦУКЕНГШЩЗХЪ/ФЫВАПРОЛДЖЭЯЧСМИТЬБЮ"
]
}
Support
Current list of language convertations:
- QWERTY: EN <> RU
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fleepit-7.tar.gz
(7.4 kB
view details)
File details
Details for the file fleepit-7.tar.gz.
File metadata
- Download URL: fleepit-7.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
720a21b181d4be1b0f9c7b8a1fb2cc714151cdd180ae9b46c5bc9bb26b957b2b
|
|
| MD5 |
55740f327d58255740f6940c7fd843de
|
|
| BLAKE2b-256 |
07383dd9168ab26786523e29640a5e400990bcbb42865c09585287b67686329a
|