#asahi · 2022-03-18 13:18
danielsmarcan: looks like you're getting opinions on keyboards :)#asahi · 2022-03-15 16:06
danielslmk if you need any more eyes on XKB stuff, or a shoulder to cry on#asahi · 2022-03-15 16:06
danielsyep! exactly, just suggesting how to frame it#asahi · 2022-03-15 16:05
daniels'I have looked at a keyboard and I have ideas on a better way to do things' is usually not the best start in that repo; 'here's what the native OS does on that device and this gets us as close as practically possible to it, with an explanation of the tweaks' is A+++ merge on sight#asahi · 2022-03-15 16:04
danielsanyway, I would file an issue/MR on xk-c with something that steers people by default to something as close to possible as what macOS does ootb, with a note about the backslash-happy variants, and then following that notes and opinions about the various modes#asahi · 2022-03-15 16:04
danielsmy XPS randomly flips between whether media or Fx is the unshifted mode, which is always a pleasure#asahi · 2022-03-15 16:02
danielsyeah, steering people towards better defaults, and giving them better prompts to work with, is definitely doable#asahi · 2022-03-15 15:59
danielsand, well, easy fix for that#asahi · 2022-03-15 15:59
danielsback to Fn - if you can fake up a fixed set of multimedia keys in the kernel, then great - if not then you're in to adding a new keytype, which definitely gets a little bit fun within XKB. but Wayland can handle it completely perfectly, it's only Xorg-native stuff that struggles#asahi · 2022-03-15 15:58
danielsusually for stuff like that you try to stick it as options rather than variants; you can only have a single variant active at a time, so most 'I want this thing, but with this one small tweak' go in as options#asahi · 2022-03-15 15:57
danielsheh#asahi · 2022-03-15 15:57
danielsthey get away with that because they're all multimedia keys, which have no interaction with modifiers etc#asahi · 2022-03-15 15:57
danielsthere are a few (laptop mainly) HID specials in the kernel which fake up the relevant keycodes for you by handling Fn, much like up/down#asahi · 2022-03-15 15:56
danielsas for 'what about Fn?', there are two options#asahi · 2022-03-15 15:56
danielsah yeah, good point#asahi · 2022-03-15 15:56
daniels(or some of the other ones to test)#asahi · 2022-03-15 15:56
danielsonce you've built and installed xkeyboard-config, you can use xkbcommon's tools to poke at it, e.g. /build-x86-64/compile-keymap --include ~/x/xkb/xkeyboard-config/foo/usr/local/share/X11/xkb --rules evdev --model applealu_jis --layout jp --option apple:jp_oadg109#asahi · 2022-03-15 15:55
danielshttps://gitlab.freedesktop.org/-/snippets/5032#asahi · 2022-03-15 15:48
danielsas someone who types US on a UK keyboard, I can sympathise with ignoring the keycaps#asahi · 2022-03-15 15:47
danielsin which case, yeah, you have to pick one and eat the cognitive dissonance#asahi · 2022-03-15 15:47
danielsbut I'm assuming you're going to counter here with 'I'm actually using both'#asahi · 2022-03-15 15:47
danielsmm, I was going to say 'but if you're using your normal PC keyboard then just use the evdev model, not the mac model'#asahi · 2022-03-15 15:45
danielsmarcan: oh?#asahi · 2022-03-15 15:43
danielsthen you end up with symbols/macintosh_vndr/jp(usmac), where usmac does everything correctly _but_ it also overrides AE13 -> [yen,bar], and you'd like it to be [backslash,bar] right?#asahi · 2022-03-15 15:42
danielsso, looking at build/rules/evdev, you end up with keycodes/evdev + macintosh_vndr/macintosh(jisevdev) which just fixes kana and is harmless#asahi · 2022-03-15 15:40
danielsbrilliant#asahi · 2022-03-15 15:39
danielshaha#asahi · 2022-03-15 15:39
danielsdealing with European keyboard politics was enough to make me abandon input#asahi · 2022-03-15 15:39
danielsI have to admit I'm not well-versed in history or use of Japanese keyboards#asahi · 2022-03-15 15:39
danielsI meant wrt Option acting as a secondary shift for defined keys#asahi · 2022-03-15 15:38
danielsyou cannot do that, no :P#asahi · 2022-03-15 15:38
danielsI mean you _can_ make it do that#asahi · 2022-03-15 15:37
danielsanyway, what you want to do is to ignore the part files, and just look at build/rules/evdev#asahi · 2022-03-15 15:36
danielsthen before you know it we have multiple layouts for Icelandic Dvorak#asahi · 2022-03-15 15:36
danielsI was going to say - and this is absolutely not to deflect from how shit the XKB rules syntax is - that one of the biggest problems is that people look at keyboards and say 'this is obviously dumb as hell, the correct thing to do is $thing, no-one else could ever possibly want anything else'#asahi · 2022-03-15 15:35
danielsah, that's interesting#asahi · 2022-03-15 15:32
danielsso alukbd will presumably map the core symbols and modifiers, then US on level 1, then JP on level 2#asahi · 2022-03-15 15:31
danielsyeeeeah. it’s not the nicest.#asahi · 2022-03-15 15:29
danielsistr they changed the layouts about then#asahi · 2022-03-15 15:29
danielspresumably AlBook era?#asahi · 2022-03-15 15:28
danielsis applealu actually still completely compatible up to M1?#asahi · 2022-03-15 15:28
danielsyeah, that should be fixed for sure#asahi · 2022-03-15 15:25
danielsmarcan: what specifically did you have in mind?#asahi · 2022-03-15 15:25
danielsmarcan: and yeah, anything using xkbcommon (not the X server) can do overlays, but ideally for common things they’d be upstream in the common definitions, not in random downstream#asahi · 2022-03-15 15:16
danielsmarcan: Wayland has 32-bit keycodes …#asahi · 2021-11-18 12:44
danielsmarcan: ah, I take it back#asahi · 2021-11-18 12:41
danielsif only there was some convenient kernel helper you could use to poll a value with a timeout!#asahi · 2021-11-09 16:39
danielsp sure that's in /usr/share/X11/xkb/symbols/pc#asahi · 2021-11-09 16:39
danielsyou could indeed make insert two-level and make the second level map to NoSymbol#asahi · 2021-11-01 16:09
danielsheh