What if I want to combine Ctrl+Shift+1+0 to obtain “≠”, for example? I’m saying this combination, like I could say any other (like a+b), it’s just one example.

  • lemmyvore
    link
    fedilink
    English
    4
    edit-2
    1 year ago

    I may be wrong but I don’t think xmodmap can do key combinations. You can use it to remap individual keys and modifiers.

    I would suggest autokey for what you want. With it, you create a phrase that outputs ≠ and assign it to the key combo you want.

    Keep in mind that using both 1 and 0 for a combo won’t work, you must use a single normal key plus optional modifiers.

    You can do it if you reassign either 1 or 0 to be a modifier, but I imagine you need to write 1 and 0 occasionally.

    You could remap one of them temporarily with xmodmap, trigger the combo you want with autokey, then map them back. You can use autokey to run commands to apply xmodmap maps, or you can run the commands in other ways (command line, taskbar shortcuts etc.)

    If you have a smart keyboard (for example one using Via or QMK firmware) you can do these kind of shenanigans directly with the firmware.

    • @MoshpiritOP
      link
      11 year ago

      I’ll investigate it, thanks!