Hey nerds - preferably white privileged ones:
Do free labour for a Itázipčho person who wants to reconnect to the culture your culture stole me from:
I want to be able to use the lakotayapi keyboard layout from Linux (Peppermint, a Debian flavor): https://lakhota.org/keyboards/
How do I do it?
Don't @ me with "have you tried...?" or similar: I want a tested-by-you step-by-step of exactly what to do to add an equivalent layout to Linux, please.
@emsenn don't have the spoons to completely do this at the moment but: because the keyboard geometry is the same as a standard ANSI keyboard, all you need to do is to create a file in /usr/share/X11/xkb/symbols/ for an lkt layout and then it should show up as an available keyboard layout through whatever GUI you use to choose it. you should also be able to set multiple layouts and a key combination to switch between them; for example, right now I use colemak and alt + capslock to switch to qwerty
it should be relatively easy to take a look at an existing keyboard layout and replace the symbols for lkt to make it work. and, I doubt there'd be much resistance to adding the layout by default to xkb so that anyone can use it on their system
@lightdark Do you htink I could copy-paste an existing keymap and edit it?
(This answer is thorough enough to be useful.)
@emsenn absolutely; it's a text-based format and at first glance it doesn't look too hard. you could also edit the US layout and add it as a variant so you don't have to modify all the keys, and it'd be accessible as us(lkt)
@lightdark Oh on closer look this layout is kinda silly replacing numbers. Maybe I'll... tweak it some. I'm editing it now; do i have to reboot to make the new layout available do you know or can i say magic words into my terminal?
@emsenn you should be able to say setxkbmap lkt or setxkbmap us(lkt) (depending on which you chose) and it should properly load it. I'd recommend running a setxkbmap us in your terminal so you can just press up and enter to go back to it, as I've had trouble setting keyboard layouts and not being able to un-set them because I messed up
@lightdark clever! thanks much!
@emsenn I'm not on my Linux half atm but I have some ideas and I'm going to hunt them down for you. i have a custom Yiddish keyboard layout on Linux, and the way I did that will *probably* work, but I gotta know a bit more.
Q1: is this a standard keyboard layout for Lakota, if there is such a thing? (I have no idea if there is.)
Q2: do you use ibus, fcitx, or something else? if you have no idea I can help you find out
Check the other subthread to this one; I think I'm going to be able to solve this myself now, but if you have a better way I'm open to it. (Surprised there isn't like a webtool to make a custom hacker layout y'know?)
1) it's the most standard one, if not the only one
2) no clue!
@emsenn I'm actually on the hunt for a file that might make your life easier, based on that subthread.
It looks like all of these are standard glyphs that might be covered by the extremely exhaustive and intuitive .Xcompose file I use, which would let you continue to use your normal keyboard, except you would be able to e.g. hold down alt and type '+e to get é, and so on, for basically all diacritics
I just gotta double-check that they're all there and you should literally just be able to copy-paste the file and be good to go
you can find nearly any non-CJK unicode glyph in there, including all of the ones in the Lakota keyboard. also works great with unicode-search.net, which lets you find the actual unicode characters you want (sometimes, including in the site you just sent me, they're actually combined glyphs that just *look* like a Unicode character, but aren't the character itself). If you're ever confused, just `grep` the file for the character you want and you'll see the way to get it, which is usually pretty intuitive.
You essentially just have to set a compose key using setxkbmap. Also, restart your X session after you've saved this file as .XCompose. You can even edit and alter the definitions if you don't like where they are- you can see I added a few up top, but those don't always work tbh, I think because of length? I haven't really tested much.
@emsenn also it has a few nice easter eggs in it. be sure to test <multi_key> <C> <C> <C> <P>
@emsenn how to get all the Lakota glyphs with this layout is pretty obvious- it maps caron to c, so <Multi_key> <s> <c> to š, but you could change that if you want to something more intuitive like v or u.
the only non-immediately intuitive one is ŋ, which is <Multi_key> <n> <g>, which makes sense phonetically
@emsenn ah, looks like you've maybe got this sorted, and the exact same way i was trying to get it to work too?
i was just going to come back and link the xkb keymap i was working on but couldn't get to work right for other people to maybe pick up where i left off
@emacsomancer hold up why the fuck is there just no compose key set by default in peppermint that seems...
...gosh I mean even windows yo ucan just hold the right alt and use the numpad to do special characters
@emacsomancer There was a GUI option for it just... why... woudln't that be set?!?!
Y'know maybe later today I'll hit you up with a second question because (maybe now it'll work right) but I had to use like, sometimes the right-hand keys to make emacs stuff work, like to do M-:
I have to press left alt, right shift, ;
Any other combo fails.
(It's been so long since I've used a computer as more than a terminal to get to my editor and browser)
@emacsomancer Maybe but it works as a shift key: I think it's probably some thinkpad-y weirdness like how I struggle to get the trackpoint to work right
I've never had an occasion to type M-: outside of Emacs but lshift+; gets me :
If I turn off the touchpad in the bios it turns off even the ability to CLICK with the touchpad, not just use it as a mouse, so I had to, if I remember, leave it turned on but set the sensitivity and acceleration to null so that it doesn't actually move the mouse around.
@emacsomancer That's a good notion, thanks!
I honestly haven't mucked with it much since I've been in DrRacket since I got this laptop, but it's becoming more and more my daily driver and it has... more than a few things I dislike about it.
Oh, I wanna put a divider on my desk because rn the fan blows right on my fingers, and there's a bruise on the screen, and the other things are mostly to do with modern operating systems being giant confusing things I don't understand.
Nothing with a quick fix, unfortunately!
@emacsomancer My plan is tbh to just buy any thinkpads I find at the scrap exchange and slowly use them to improve my partner's and I's and re-donate the remains, but so far haven't found any
@emacsomancer I did not know that part about 'green exchanges' listing on ebay, actually!
I'll maybe set up an alert for stuff like keyboards and screens!
(While I'd definitely prefer to avoid the transportation, if it's a choice between burning fuel to bring it to my door or burning a little less fuel to throw it away forever, I'm willing to do the former.)
@emacsomancer My probably biggest gripe is "If I run my totally unoptimized MUD engine that pegs the cpu at 25% and makes the fan go nonstop, my battery life goes down so quickly!"
That's just entirely my fault :D :D :D
@emsenn There doesn't seem to be something like this in the default XKB distribution. I just made this:
It matches the ones you linked to. Let me know how it works for you.
@emsenn Fair warning: sometimes `xkbcomp` crashes the X-server. Some day I should try to debug that, but instead I just live with my display crashing every so often.
@willghatch Awesome, thank you!
@emsenn Also, I decided to write this before I saw any of the other replies. Frankly, just using the compose key as suggested by @emacsomancer is probably a simpler solution.
@willghatch That's probably what I'll do in practice since it's more generally useful, but yours is still a resource for lakotayapi writers that did not previously exist and I'm quite thankful for it!
@emsenn This sounds like an interesting project, I'm interested in keyboard layouts and porting one to xconfig would allow me to learn how to do it, I'll give it a shot
@emsenn seems you guy it sorted out, but I'll take a look as to what others have done
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!