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

Any ideas how to make this work on Arch? #12

Open
ghost opened this issue Jul 28, 2022 · 3 comments
Open

Any ideas how to make this work on Arch? #12

ghost opened this issue Jul 28, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2022

I'm running Arch with Xorg and i3, been trying to make this work on this setup but no success so far.

@michalkahle
Copy link
Owner

I have no experience with this setup. When you make it work, please post the solution here or update the documentation.

@o7raven
Copy link

o7raven commented Sep 17, 2023

I'm using x11 arch with dwm and it works just fine. Make sure you have all the packages you need.

Here's an example of how I use it

#!/bin/bash

keyboard=$(echo -e "CODER\nUS\nCZ" | dmenu)
case "$keyboard" in
	"US")
		setxkbmap -layout us
		;;
	"CZ")
		setxkbmap -layout cz -variant  qwerty
		;;
	"CODER")
		setxkbmap -layout cz -variant coder
		;;
esac

@ghost
Copy link

ghost commented Mar 20, 2024

I'm running Arch with Xorg and i3, been trying to make this work on this setup but no success so far.

To make it system wide on xorg configuration level:

$ cat /etc/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
	Identifier "evdev keyboard catchall"
	MatchIsKeyboard "on"
	MatchDevicePath "/dev/input/event*"
	Driver "evdev"

	Option         "XkbModel" "pc102"
	Option         "XkbLayout" "us,cz(coder)"
	Option         "XkbRules" "xorg"
	Option         "XkbOptions" "grp:caps_toggle,grp_led:caps"
	Option         "AutoRepeat" "150"
EndSection

or

	Option         "XkbLayout" "us,cz"
	Option         "XkbVariant" ",coder"

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