home.social

#xmodmap — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #xmodmap, aggregated by home.social.

fetched live
  1. @Cal #ArchLinux Wiki has an excellent piece on keyboard customization: wiki.archlinux.org/title/X_key

    Basically, dump the standard keymap, edit it to your liking, and read it back. I recently fixed up mine using this, I was running an old hacked Xmodmap that hadn't really been working well for the last 15 years or so…

    xkbcomp $DISPLAY output.xkb
    ...edit
    xkbcomp editedfile "$DISPLAY"

    and if the latter works, but it in .xsessionrc to have it autoload.

    #Linux #XKBComp #XModMap #KeyboadLayout

  2. :boost_requested:

    Hello @askfedi,

    TL;DR: What is causing my X.org keymap to change unsolicited for, and how can I prevent it?

    When I log in to my X.org based desktop environment on Linux a custom keymap is set from ~/.Xmodmap. This is all fine and dandy.

    However, at odd times — perhaps every day or two — the keymap mutates into something else, that could be the default X.org keymap, and I have to run “xmodmap ~/.Xmodmap” to get back to where I want to be.

    I haven't been able to correlate these events with anything, but of course systemd is always a strong contender for such anomalies…

    Has anyone else experienced the same thing and found a way to prevent it?

    TIA!

    /cc [ #askfedi | #Xorg | #X11 | #CLI | #keymap | #xmodmap | #Linux | #ArchLinux | #QTile | #systemd | #fælleshjerne ]

    PS: This post is unrelated to the social network formerly known as the birdcage.
  3. :boost_requested:

    Hello @askfedi,

    TL;DR: What is causing my X.org keymap to change unsolicited for, and how can I prevent it?

    When I log in to my X.org based desktop environment on Linux a custom keymap is set from ~/.Xmodmap. This is all fine and dandy.

    However, at odd times — perhaps every day or two — the keymap mutates into something else, that could be the default X.org keymap, and I have to run “xmodmap ~/.Xmodmap” to get back to where I want to be.

    I haven't been able to correlate these events with anything, but of course systemd is always a strong contender for such anomalies…

    Has anyone else experienced the same thing and found a way to prevent it?

    TIA!

    /cc [ #askfedi | #Xorg | #X11 | #CLI | #keymap | #xmodmap | #Linux | #ArchLinux | #QTile | #systemd | #fælleshjerne ]

    PS: This post is unrelated to the social network formerly known as the birdcage.
  4. Jhee, is there really no GUI editor for creating XKB layouts that can be easily built or installed in 2023?

    github.com/vgresak/keyboard-la

    github.com/simos/keyboardlayou

    Maybe I should try to write a #nix package for one of them? Maybe that's too hard for a newbie like me.

    Note I want to thoroughly customize the layout (including dead keys etc), not just swap a couple of keys.
    Can this be done with xmodmap?

    Note that I have a Windows version of the layout that I created.

    #linux #xkb #NixOS #xmodmap

  5. Jhee, is there really no GUI editor for creating XKB layouts that can be easily built or installed in 2023?

    github.com/vgresak/keyboard-la

    github.com/simos/keyboardlayou

    Maybe I should try to write a #nix package for one of them? Maybe that's too hard for a newbie like me.

    Note I want to thoroughly customize the layout (including dead keys etc), not just swap a couple of keys.
    Can this be done with xmodmap?

    Note that I have a Windows version of the layout that I created.

    #linux #xkb #NixOS #xmodmap

  6. Forgot to promote the video but I have a video on kmonad which is a better solution than using xmodmap.

    youtu.be/8t5qAXsKLZg

  7. Got angry at which broke during a recent upgrade. Replaced it with , which has been much more stable.

    github.com/rvaiya/keyd

    Considered , which has an attractive s-exp based config language, but the toolchain wouldn't compile properly.

  8. So in #Xorg I used an #xmodmap file to allow entering the german diaresis chars with the super keys on my english keyboard:

    keycode 30 = u U udiaeresis Udiaeresis
    [....]
    keycode 108 = Mode_switch
    keycode 134 = Mode_switch
    clear lock
    !keysym Alt_L = Mode_switch
    !keysym Alt_R = Mode_switch
    add Mod1 = Mode_switch
    add Mod1 = Super_L
    add Mod1 = Super_R

    This does not work anymore for #Wayland. Is there an easy way to achieve the same thing?

    #followerpower

  9. Is anyone experienced with and ? after typing xmodmap -e "keycode 94 = less greater less greater bar " I still get a onehalf character instead of the bar (|) ... no idea what's going on ...