Oops, I posted prematurely, will edit Edited:
@Lamy here’s the solution below:
I’m messing around with custom keymaps at the moment (I’m also using Sway/libxkbcommon like @junaruga).
In my ~/.xkb/symbols/custom
file, if I want the Framework symbol key to map to the Compose key, I add this line:
key <I234> { [ Multi_key ] };
(<I234>
comes from /usr/share/X11/xkb/keycodes/evdev
)
Multi_key
is for the Compose key, see:
List of Keysyms Recognised by Xmodmap - LQWiki
Multi_key 0xFF20 Allows odd characters to be entered, in the same way as Compose in loadkeys
You can verify that it’s set correctly by running:
xmodmap -pke
which shows:
...
keycode 234 = XF86AudioMedia NoSymbol Multi_key
...
which means (keycode 234 → XF86AudioMedia) will trigger the Multi_key
.
In this way, that key (and others) can be remapped to fit your needs! 
Extra note for Sway and perhaps others:
It seems like inet(evdev)
can override the custom layout symbols causing it not to work:
$ 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)" };
};
Note that since inet(evdev)
is last in this line:
symbols: pc+us+inet(evdev)
that the file /usr/share/X11/xkb/symbols/inet
will override the previous pc
and us
symbols.
To override that file, we can copy it into ~/.xkb/symbols/inet
(or ~/config/xkb/symbols/inet
). Finally, in override file, update the key <I234>
value, e.g.:
key <I234> { [ Multi_key ] };
Another option is overriding everything by dumping and using an xkb_file
.
Dump the config:
$ xkbcomp $DISPLAY ~/xkb.dump
and then set the key <I234>
value you want in that file.
Finally, use it in your Sway config:
input * xkb_file "~/xkb.dump"
See:
https://github.com/swaywm/sway/issues/3999#issuecomment-650638153
https://github.com/edyounis/sway/commit/08ec244bfdb1ab6d59a1caa39a14ee991c26ceb4