DreymaR said:debian% ./setkb.sh -m pc105 -l pl(cmk_ed_us) -v 9 "5caw us us"
zsh: number expected
Well, that's not right at all. You can't mix a shortstring at the end with normal options earlier. It's either or.
This should be enough:
Also, this is a BASH script. Its shebang says so. I hope you didn't actually try to run it with CSH? Would it just ignore the shebang?
I ran what you said should be enough. I'm still not quite there, but maybe not far off.
The layout is Colemak-DH indeed, but weird characters appear in the middle of each row, offsetting the actual key mapping by one to the right on each row. This affects only the current row, so the offset is by one on each row.
Left is what I get, and right is the key on the physical QWERTY keyboard. This is ISO X220 keyboard as attached here: https://www.idrive.com/idrive/sh/sh?k=o3b7v2v2u8.
Full output below. Thanks a lot for your help!
debian% ./setkb.sh "5caw"
@@@ DreymaR's setxkbmap script (by OeBeAa, 2023-06) @@@
¤ ShortStr model/layout: pc105awide / us(cmk_ed_us)
¤ ShortStr lay. options: Curl(DH) - 'y'; Sym - 'n'.
¤ Changing dir to '/usr/share/X11/xkb'
¤ Looking for and removing any old .xkm server files
[sudo] password for kamil:
¤ Running setxkbmap command using the system XKB dir:
> setxkbmap -model pc105awide -layout us(cmk_ed_us) -option misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:menu,misc:cmk_curl_dh -v 9
Setting verbose level to 9
locale is C
Warning! Multiple definitions of keyboard model
Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to load rules file ./rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105awide
layout: us(cmk_ed_us)
options: misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:menu,misc:cmk_curl_dh
Trying to build keymap using the following components:
keycodes: evdev(pc105awide)+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us(cmk_ed_us)+inet(evdev)+group(shifts_toggle)+compose(menu)+level5(caps_switch_lock)+extend(basic)+colemak(cmk_ed_dh)
geometry: pc(pc105awide)
¤ Changing dir to '/home/kamil/BigBagKbdTrixXKB'
@@@ setkb.sh finished! @@@
debian% ./setkb.sh "5caw pl us"
@@@ DreymaR's setxkbmap script (by OeBeAa, 2023-06) @@@
¤ ShortStr model/layout: pc105awide / pl(cmk_ed_us)
¤ ShortStr lay. options: Curl(DH) - 'y'; Sym - 'n'.
¤ Changing dir to '/usr/share/X11/xkb'
¤ Looking for and removing any old .xkm server files
¤ Running setxkbmap command using the system XKB dir:
> setxkbmap -model pc105awide -layout pl(cmk_ed_us) -option misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:menu,misc:cmk_curl_dh -v 9
Setting verbose level to 9
locale is C
Warning! Multiple definitions of keyboard model
Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to load rules file ./rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105awide
layout: pl(cmk_ed_us)
options: misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:menu,misc:cmk_curl_dh
Trying to build keymap using the following components:
keycodes: evdev(pc105awide)+aliases(qwerty)
types: complete
compat: complete
symbols: pc+pl(cmk_ed_us)+inet(evdev)+group(shifts_toggle)+compose(menu)+level5(caps_switch_lock)+extend(basic)+colemak(cmk_ed_dh)
geometry: pc(pc105awide)
¤ Changing dir to '/home/kamil/BigBagKbdTrixXKB'
@@@ setkb.sh finished! @@@