michalkahle / czech-coder-xkb

Linux xkb keyboard layout for coders who need to write Czech.
MIT License
75 stars 8 forks source link

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

Open ghost opened 2 years ago

ghost commented 2 years ago

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

michalkahle commented 2 years ago

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

o7raven commented 1 year ago

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 commented 7 months ago

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"