• You are not logged in.
  • Index
  • Technical
  • Big Bag Of Tricks Xkb not working on swaywm/wayland

    Big Bag Of Tricks Xkb not working on swaywm/wayland

    • Started by Why
    • 4 Replies:
    • Reputation: 0
    • Registered: 08-Apr-2021
    • Posts: 6

    whenever i try to type in this command ./setxkb.sh "4caw"
    I get this output and it does not apply the layout

    ¤ Using model/layout 'pc104aw-zqu'/'-v(10)' from ShortStr
    ¤ Changed dir to '/usr/share/X11/xkb'
    ¤ Looking for and removing any old .xkm server files
    ¤ Running setxkbmap:

    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:      pc104aw-zqu
    layout:     -v(10)
    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(pc104aw-zqu)+aliases(qwerty)
    types:      complete
    compat:     complete
    symbols:    pc+-v(10)+inet(evdev)+group(shifts_toggle)+compose(menu)+level5(caps_switch_lock)+extend(basic)+colemak(cmk_ed_dh)
    geometry:   pc(pc104aw-zqu)
    Error loading new keyboard description

    ¤ Changed dir to '/home/alex/Downloads/BigBagKbdTrixXKB-master'

    Also the error loading new keyboard description is not the error.It was just a fluke

    Last edited by Why (08-Apr-2021 22:47:25)
    Offline
    • 0
    • Reputation: 0
    • Registered: 08-Apr-2021
    • Posts: 6

    I have now solved it by using a program called kmonad which luckily is protocol agnostic and also using the colemak dh config files

    Last edited by Why (10-Apr-2021 00:44:45)
    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,364

    Looks to me as if the setxkb.sh isn't running correctly for you. There isn't supposed to be any '-v(10)' layout! Looks like a verbose switch for the setxkbmap command has been interpreted as the layout name. Whether this is some error in my script or some way Wayland has moved the posts on Bash syntax, is unclear to me. So technically the BigBag may still be working for you, but not the script.

    The BigBag does a few things for you that KMonad can't, and vice versa. With the BigBag you can for instance get Extend, and if you haven't yet I'd advise you strongly to look into its benefits!

    What I'd do if I were you is to run setxkb.sh with the switch to write the command to a file. Then study the resulting command and edit the layout/variant part (should be us/cmk_ed_us unless you want a locale).

    Sorry I can't help right now. I don't have a Linux system running atm.

    Last edited by DreymaR (10-Apr-2021 04:55:42)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
    • Reputation: 0
    • Registered: 08-Apr-2021
    • Posts: 6

    I checked my bashrc and the line that it added seems to be normal no incorrect options but it still does not work also you can get extend on kmonad.It just does not have good Unicode support

    Last edited by Why (10-Apr-2021 12:58:27)
    Offline
    • 0
    • Reputation: 0
    • Registered: 08-Apr-2021
    • Posts: 6

    I have tried it again and it seems to be a problem with this part 

    Trying to build keymap using the following components:
    keycodes:   evdev(pc105aw-sl)+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(pc105aw-sl)


    For some reason it seems to apply qwerty.
    I will try again on xorg and see if it works


    Edit It seems to work on xorg but on wayland. It does not work whatsoever

    Last edited by Why (26-Apr-2021 02:19:32)
    Offline
    • 0
      • Index
      • Technical
      • Big Bag Of Tricks Xkb not working on swaywm/wayland