Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping shortcuts to custom scripts #866

Closed
SandeshGowda-0094 opened this issue Oct 31, 2024 · 1 comment
Closed

Mapping shortcuts to custom scripts #866

SandeshGowda-0094 opened this issue Oct 31, 2024 · 1 comment

Comments

@SandeshGowda-0094
Copy link

Hey, can anyone tell weather its possible to have custom key maps set to run scripts when active in a particular application using the keyd-application-mapper.

For example, lets say I need to map alt+= and alt+- to increase or decrease the transparancy of alacritty-terminal, as there is no direct way for this, hence I have written a custom python script the tweaks the alacritty config file.

I wanted to know weather there is a way to trigger this script to keyd-application-mapper

@rvaiya
Copy link
Owner

rvaiya commented Dec 27, 2024

Use command(). Be aware of the usual caveats (the command will run as root with no environment variables set).

@rvaiya rvaiya closed this as completed Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants