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

Invalid key: Shift #544

Open
grousk opened this issue Dec 10, 2023 · 4 comments
Open

Invalid key: Shift #544

grousk opened this issue Dec 10, 2023 · 4 comments

Comments

@grousk
Copy link

grousk commented Dec 10, 2023

I am defining an binding like this: bind[flip_layout] = MOD+Shift+backslash and in bar there is an exception: line 139: bind: invalid key: Shift

@LordReg
Copy link
Contributor

LordReg commented Dec 15, 2023

It is likely a locale/character encoding issue.. If you are seeing invalid key: Shift that means strncasecmp() is failing to match the Shift text from your configuration file. Ensure your config file and spectrwm's locale is UTF-8 encoded.

@grousk
Copy link
Author

grousk commented Jan 6, 2024

Its UTF-8 encoded. Maybe it caused by filename? My filename is spectrwm_tr.conf should it be like spectrwm_us.conf

@LordReg
Copy link
Contributor

LordReg commented Jan 10, 2024

If that is a keyboard mapping file, the filename doesn't matter as long as keyboard_mapping in your spectrwm.conf points to your file.
Also ensure the locale of spectrwm's environment is UTF-8 when it starts:
e.g. when starting spectrwm via ~/.xinitrc:

export LANG=en_US.UTF-8
exec spectrwm

@grousk
Copy link
Author

grousk commented Feb 26, 2024

I'm already using a UTF-8

echo $LANG: tr_TR.UTF-8

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