You are not logged in.

#1 2024-07-01 10:06:09

jayrock
Member
Registered: 2021-12-19
Posts: 11

[SOLVED] xkb_model not working after upgrading Arch/Sway

Pretty sure this is not an Arch issue, but I need help trying to troubleshoot the issue...

I have been using the xkb_model "macintosh" in may Sway configuration. However, after upgrading the system, the xkb_model setting seem to not to take effect anymore (xkb_layout, and xkb_options still do). The same thing happened for both my Desktop-PC and my Lenovo-laptop.

My Sway configuration is configured like this:

input "type:keyboard" {
    xkb_layout fi
    xkb_model "macintosh"
    xkb_options caps:super,shift:both_capslock
}

The config file /etc/X11/xorg.conf.d/00-keyboard.conf contains

# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# update this file.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "fi"
        Option "XkbModel" "macintosh"
EndSection

Localctl status returns:

% localectl status
System Locale: LANG=en_US.UTF-8
    VC Keymap: fi
   X11 Layout: fi
    X11 Model: macintosh

Now, I did notice that `setxkbmap -print` returns a different configuration...

% setxkbmap -print -verbose 10
Setting verbose level to 10
WARNING: Running setxkbmap against an Xwayland server
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)
geometry:   pc(pc105)
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(evdev)"     };
        xkb_geometry  { include "pc(pc105)"     };
};

...however, even if I change the configuration manually, I can see the model changing also in this print, but it still does not work.

% setxkbmap -layout fi -model macintosh
% setxkbmap -query
WARNING: Running setxkbmap against an Xwayland server
rules:      evdev
model:      macintosh
layout:     fi

Last edited by jayrock (2024-11-20 12:48:19)

Offline

#2 2024-11-20 12:47:36

jayrock
Member
Registered: 2021-12-19
Posts: 11

Re: [SOLVED] xkb_model not working after upgrading Arch/Sway

Not sure why this was not required before but adding the XKB variant to "mac" solved the issue

xkb_variant "mac"

Offline

Board footer

Powered by FluxBB