Plover Run Shell
Command plugin for Plover to run an arbitrary shell command.
The package is available on GitHub and PyPI.
Common issues
The subprocess inherits Plover's environment, and some plugins might set some environment variables.
For instance, on some operating systems, plover-debugging-console
may set PAGER environment variable. (see issue #2)
You may want to unset them explicitly, for example on systems with env:
env -uPAGER -uGIT_PAGER xterm
Alternatively, install a sufficiently new version of package background-zmq-ipython,
see README of plover-debugging-console for more details.
Usage
In order to use this plugin in Plover you need to create a dictionary entry of the form:
{
"example_stroke": "{PLOVER:SHELL:command}"
}
Note:
- The command might be executed synchronously (so you can use
&on Linux orstarton Windows if you don't want Plover to freeze, in case the called process is long-running). - (on UNIX systems) The command may be executed by the
shshell. If you want to use another shell, you can call that shell explicitly:bash -c "command".
Example
These examples are only for X on GNU/Linux systems (it relies on many external tools).
You should be able to construct similar translations by searching for "how to do task X from console/command-line".
If there's none, you can still write an external program with other programming language and call it from Plover. (alternatively, write it in Python and make a command plugin)
Alternatively, if you already have a working binding in the windows manager, you don't have to use this plugin and use Plover's key combination syntax.
-
Shutting down the machine
"{PLOVER:SHELL:\\{ sleep 2s;poweroff; \\}&}{PLOVER:QUIT}" -
Restart Plover (console GUI, in a new terminal)
"{PLOVER:SHELL:xterm -e bash -c \"sleep 0.5s; plover --gui console\" &}{PLOVER:QUIT}" -
Change brightness
"{PLOVER:SHELL:xbacklight -10}" "{PLOVER:SHELL:xbacklight +10}" -
Change volume (note that the solution with
pactlis not robust because it relies on the sink number being 0)"{PLOVER:SHELL:pactl set-sink-volume 0 -5%}" "{PLOVER:SHELL:pactl set-sink-volume 0 +5%}" "{PLOVER:SHELL:amixer -D pulse sset Master 5%+}" "{PLOVER:SHELL:amixer -D pulse sset Master 5%-}" -
Suspend (depends on your GNU/Linux distribution)
"{PLOVER:SHELL:systemctl suspend}" "{PLOVER:SHELL:pm-suspend}"
Metadata
Release files for plover-run-shell 0.0.4
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 | Actions |
|---|---|---|---|---|
| plover_run_shell-0.0.4.tar.gz | 16.2 kB | Without provenance | Details for plover_run_shell-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plover_run_shell-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for plover_run_shell-0.0.4-py3-none-any.whl |
Total release size: 31.8 kB
Release files / plover_run_shell-0.0.4.tar.gz
| Download URL | plover_run_shell-0.0.4.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7182ce0f9f9e7d6ce75c66a618b25cbdf71720479fb1cc82962b9eee9aa10a
|
|
BLAKE2b-256 checksum How to use checksums |
4cf82c12c139ac651940cfd9cf572909c9470e56820e1c2121f64fc765be5ac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
|
Release files / plover_run_shell-0.0.4-py3-none-any.whl
| Download URL | plover_run_shell-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d8c775ed9cb51fec41bb1b7910a12d94a36f5846a563309236cdf79fc815c05
|
|
BLAKE2b-256 checksum How to use checksums |
b552b6baa283118cb0ff847dfa323bc4e3de874396c16e286bc8aa0896aeddb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
|
Security for plover-run-shell 0.0.4
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.