input-paste
緣起
在linux平台上,有一些桌面應用程式會遇到不能打中文的情況,像是Sublime Text、Spotify
在不去對應用程式做hack的情況下(像是這個)
就只能用最簡單的copy-paste方法了
這個非常簡單的小工具就是跳出小方塊讓你輸入並自動貼上
相依性
GTK+ 3
Xlib Python binding
Python 2.7+
安裝
以下示範是在debian/ubuntu上(其他版本將相依性安裝即可)
if run in python2:
$ sudo apt-get install python-gi python-xlib
$ pip install input-paste
if run in python3:
$ sudo apt-get install python3-gi python3-xlib
$ pip install input-paste
接下來,設定系統熱鍵能夠執行input-paste即可
用法
點擊應用程式輸入框並維持游標位置,叫出input-paste輸入文字後
按Enter/Ctrl+Enter就會將文字貼上游標位置,或按Esc/Alt+F4關閉input-paste
Motivation
Sometimes, we can’t type Chinese in application on Linux(or UNIX-like) system.
Without hacking it in low-level(like this), we should utilize clipboard to solve this problem.
This tool will bring convenience to you.
Dependency
GTK+ 3
Xlib Python binding
Python 2.7+
Installation
Following is on debian/ubuntu system.
if run in python2:
$ sudo apt-get install python-gi python-xlib
$ pip install input-paste
if run in python3:
$ sudo apt-get install python3-gi python3-xlib
$ pip install input-paste
Next, set up hotkey in your system to execute input-paste.
Usage
Click input box in your application, and retain the cursor position.
Invoke input-paste with hotkey, and type some words in it.
Press Enter/Ctrl+Enter to copy text to your cursor position,
or press Esc/Alt+F4 to close input-paste.
Metadata
Release files for input-paste 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| input-paste-0.1.2.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| input_paste-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.6 kB
Release files / input-paste-0.1.2.tar.gz
| Download URL | input-paste-0.1.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc51cfe2b1f5deb2929140ee53d22b0069c3135b852f7fe23b49d59f127aed5c
|
|
BLAKE2b-256 checksum How to use checksums |
442b52ea312b58ed9dab5f0b4a0bb1f85185a463f8206ab2fa04ae8bb679f723
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / input_paste-0.1.2-py2.py3-none-any.whl
| Download URL | input_paste-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c22a17fb3748d4a594c60a38cc88516be887e706328d0bf663cd2648601ded02
|
|
BLAKE2b-256 checksum How to use checksums |
bc768311b0e2e5cba95bf7d65ad2dd80ce3d559fc9ae57db1d40d31a4cf9cf48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for input-paste 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.