MiceLess
Utitlity that helps binding keyboard shortcuts for some of the operations that you do with mouse.
Usecase
Primary usecase that this tool was written for is switching focus between windows on different monitors.
In some cases, e.g. multiple desktops, simple Alt-TAB wont help,
because it would either switch you to latest used app or would require you to press this combo several times,
until you reach target window. With this tool you can configure shortcuts so that, for example, Ctrl-Alt-1 would
set window in left monitor in focus and Ctrl+Alt+2 would set focus for window in right monitor.
Installation
Via PIP:
pip install miceless
To run the app, execute:
python3 -m miceless.run
Manual
MiceLess stores a mapping between key-combos and sequences of mouse clicks.
App config would be stored in home folder in .miceless file.
The app should work anywhere where pynput works, yet it has been tested only on Ubuntu with X server.
Modes
The tool has two operation modes: recording and playback. You can switch between modes by pressing Ctrl+Alt+~.
Recording
While in recording mode, Ctrl-Alt-<key> combo would append click in current mouse location to the list
of events for a given combo. Pressing special combination Ctrl+Alt+0 would clear events list for last used key combo.
Playback
In playback mode pressing Ctrl+Alt+<key> combo would invoke a sequence of events stored for that combination.
Known issues
- Playback clicks are executed with
Ctrl+Altpressed, because all combos have these keys in them. This might be a problem for some applications. - There might be collisions with app-specific hotkeys that would result in not desired firings of event sequences.
- Events capture is based on
pynputwhich in turn usesXlib, thus there might be issues in non-X environments, e.g. in Wayland.
Metadata
Release files for miceless 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| miceless-1.0.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| miceless-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / miceless-1.0.0.tar.gz
| Download URL | miceless-1.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90c7eddef4d2abf97bfbccc1e0162d1841cf04e4306179a15327d245f72a0c9c
|
|
BLAKE2b-256 checksum How to use checksums |
64e562c0584c17c157b76036f65eed3ba48474e5278da607640aaa65f160c276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Release files / miceless-1.0.0-py3-none-any.whl
| Download URL | miceless-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26c7129e27be21980e60463f67c226d2a29af9dd46c044981929a7e9f8f5899f
|
|
BLAKE2b-256 checksum How to use checksums |
7203fe9158d647ecf09220debbd1d30d7ee3ab9bc0dc073a0b3ebda71e28b164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|