Skip to main content

No project description provided

Project description

kvix

kvix provides mouseless quick actions for desktop, like Double Shift in Intellij IDEA or ctrl+shift+P in VSCode. It can be used to quickly perform frequently used actions which are too numerous to configure hot keys for them.

Usage

By default, kvix is configured to activate on Ctrl+; hotkey. kvix also runs embedded web-server on default port 23844 and can be activated by curl -X POST http://127.0.0.1:23844/activate

Build on Linux

`cd kvix && sh run pyproject pyinstaller`

Build on Windows

The procedure is awfull, sorry for that.

  • install msys2 and open "MSYS2 MINGW64" command prompt

  • install python & pip: pacman --sync --noconfirm mingw-w64-x86_64-python mingw-w64-x86_64-python-pip

  • install specific versions of prebuild libraries which cannot be installed with pip

    pacman --noconfirm --upgrade \
    	https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-gobject-3.46.0-1-any.pkg.tar.zst \
    	https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-cairo-1.25.1-1-any.pkg.tar.zst \
    	https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-pillow-10.1.0-1-any.pkg.tar.zst
    
  • do cd kvix; USE_VENV=false sh run msys2pyinstaller (this article can be helpfull for understanding)

If errors, the following can be helpful.

  • do pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-python3-cairo mingw-w64-x86_64-toolchain mingw-w64-x86_64-python-cairo gcc mingw-w64-x86_64-python-pillow

  • If got error somethins like this:

    Package glib-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    

    then do PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/mingw64/lib/pkgconfig:

  • do export SETUPTOOLS_USE_DISTUTILS=stdlib as in tutorial

  • this tutorial

    pacman -S --needed --noconfirm base-devel mingw-w64-x86_64-toolchain git \
    	mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-cairo \
    	mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-libffi
    

Development

Visual Studio Code configuration

Use launch configuration .vscode/launch.json:

{
	"version": "0.2.0",
	"configurations": [
		
		{
			"name": "debug kvix gui",
			"type": "python",
			"request": "launch",
			"code": "import sys; sys.path.insert(0,'./src'); import kvix.app; kvix.app.main()",
			"justMyCode": false
		}
	]
}

todo

fix paste into selection query entry bug
folders
obsidian daily note
Read the SSL Certificate information from a remote server
save action selector query in cache
save selectors between activations
ctrl+home & ctrl+end
restart action
rename kvix.Selector.go to activate
rename kvix.Ui.destroy to stop?
rename kvix.ui.Selector.go to show
--collect-data TKinterModernThemes
if activation event fired when window already on screen, activate it and bring to foreground
fix freeze when interrupt signal received (Ctrl+C in shell)
on windows set focus when show window
https://stackoverflow.com/questions/22751100/tkinter-main-window-focus
fix new case action if clipboard is empty
hide kvix after all windows loose focus
separate dialog to select action for editing
fix paste if entry has text
fix clipboard https://stackoverflow.com/questions/21944895/running-powershell-script-within-python-script-how-to-make-python-print-the-pow
control systemctl services
find local files
run desktop files
show actions that `query_match(query, action.title)` above those that `query_match(query, action.action_type.title)` above others
open two clipboard contents in diff program
if top line in selector results selected, arrow up should select bottom line
(list cases to open in action selector)
Shift+F10 to open context menu of selected element
прятать окно при потере фокуса
сделать упорядочивание списка результатов в селекторе

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

kvix-0.1.1.tar.gz (93.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kvix-0.1.1-py3-none-any.whl (101.5 kB view details)

Uploaded Python 3

File details

Details for the file kvix-0.1.1.tar.gz.

File metadata

  • Download URL: kvix-0.1.1.tar.gz
  • Upload date:
  • Size: 93.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for kvix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1443f4b9c6281676016698014d3de685e49310a3aea4955ecdec374542fc6b0
MD5 9828b1e959f4fcc42edaef4b76c20396
BLAKE2b-256 883d32bdcd9e581f02aa6d83f4714106e6233c128abb794009897b178839ba61

See more details on using hashes here.

File details

Details for the file kvix-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kvix-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 101.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for kvix-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49a38dfee0de1baedee4409a20c091f240bc1de5ff51db207d325fcf03d24990
MD5 751ec08ad1cda50b18ced677d94deb82
BLAKE2b-256 346c0bd4c700e018c4c91c8bce79f3556a5460cb7589e4d17a3bd6153a4d3c0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page