Python app for assigning shortcut actions to game controllers.
Project description
Controller Companion
Easily map controller shortcuts to an action. The following actions are supported:
- Kill a task by its name.
- Execute a keyboard shortcut.
- Execute an arbitrary console command.
Features
- GUI and CLI options available
- Supports a wide variety of controllers (those supported by pygame)
- Runs on Windows, Linux and Mac
- Auto start on system boot (windows only for now)
- GUI app can be compiled as a standalone executable (using PyInstaller
Screenshots
Main Window
Create a new shortcut
How to Install
- Using pip:
pip install controller-companion - For the GUI version, executables are additionally available here for Windows, Mac and Linux. In addition for windows, an installer is available.
How to run
- CLI and GUI versions available
- CLI:
-
Multiple mappings can be created.
-
One or multiple input controller key combination that triggers an action can be defined using --input. The keys of one individual input combination are separated by commas, while each distinct input combination is separated by a space.
-
One or multiple actions can be defined using either
--task-kill,--consoleor--shortcut. These actions will be mapped to the previously defined controller--inputkey combinations in the order--task-kill,--consoleand finally--shortcut -
Example with 2 mappings:
controller_companion --input A,B Back,Left --console explorer.exe --shortcut alt+f4will result in the following mapping:
Controller<A,B> --> Action<name: Run command "explorer.exe", target: explorer.exe, type: CONSOLE_COMMAND> Controller<Back,Left> --> Action<name: Shortcut "alt+f4", target: alt+f4, type: KEYBOARD_SHORTCUT>
-
Run
controller_companion --helpto see all available arguments
-
Build Executable
With poetry installed, run the following command to build the executable using PyInstaller:
poetry run build_controller_companion_executable
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file controller_companion-0.6.0.tar.gz.
File metadata
- Download URL: controller_companion-0.6.0.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b714718708b28b7a72e0a3e5fab9b7e29da9edef0ea8ef78bb9a9f59bc89d1
|
|
| MD5 |
c59f3559edba223464a2602d3e1be65a
|
|
| BLAKE2b-256 |
999857368caf4b60bc94a55062e06d686c24c9a830f7c5801fda6fc83956f04f
|
Provenance
The following attestation bundles were made for controller_companion-0.6.0.tar.gz:
Publisher:
publish_pypi.yaml on Johannes11833/controller-companion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
controller_companion-0.6.0.tar.gz -
Subject digest:
34b714718708b28b7a72e0a3e5fab9b7e29da9edef0ea8ef78bb9a9f59bc89d1 - Sigstore transparency entry: 157632073
- Sigstore integration time:
-
Permalink:
Johannes11833/controller-companion@b6926935d5d22676bde1b4832cd3feb92d61d972 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Johannes11833
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yaml@b6926935d5d22676bde1b4832cd3feb92d61d972 -
Trigger Event:
push
-
Statement type:
File details
Details for the file controller_companion-0.6.0-py3-none-any.whl.
File metadata
- Download URL: controller_companion-0.6.0-py3-none-any.whl
- Upload date:
- Size: 48.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c206810e99484f8c7cc59cf6ebdc5e22c36fcf45cfc71d670a614682996e2f1
|
|
| MD5 |
14349b8bb61648a424b70afe52ea65da
|
|
| BLAKE2b-256 |
1f32f5ae32f8fb018bc68fb2a4c1c2821f8796df118287f406f80cfbfb4c46b8
|
Provenance
The following attestation bundles were made for controller_companion-0.6.0-py3-none-any.whl:
Publisher:
publish_pypi.yaml on Johannes11833/controller-companion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
controller_companion-0.6.0-py3-none-any.whl -
Subject digest:
4c206810e99484f8c7cc59cf6ebdc5e22c36fcf45cfc71d670a614682996e2f1 - Sigstore transparency entry: 157632074
- Sigstore integration time:
-
Permalink:
Johannes11833/controller-companion@b6926935d5d22676bde1b4832cd3feb92d61d972 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Johannes11833
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yaml@b6926935d5d22676bde1b4832cd3feb92d61d972 -
Trigger Event:
push
-
Statement type: