Skip to content

Best way to run something before and after e.g. changing keyboard layout #2507

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

Closed
alexheretic opened this issue Feb 28, 2023 · 1 comment · Fixed by #3565
Closed

Best way to run something before and after e.g. changing keyboard layout #2507

alexheretic opened this issue Feb 28, 2023 · 1 comment · Fixed by #3565

Comments

@alexheretic
Copy link

Problem description

I often want to set my keyboard layout to qwerty for games, rather than my default of colemak.

In steam I can do this with launch settings setxkbmap gb; %command%; setxkbmap gb colemak.

For some games I've used a similar way to set mouse sensitivity before & after the game launch.

I can't see an equivalent way to do so in heroic. Is there a good way to achieve this?

Feature description

Configure commands to run before & after the game.

Alternatives

No response

Additional information

No response

@Anuskuss
Copy link

Anuskuss commented Jun 4, 2023

Until this is done properly, you can use this as your wrapper script:

#!/bin/bash

setxkbmap gb
"$@"
setxkbmap colemak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants