I cerrently on “colemak” layout and wanna switch to “colemak-dh” but dunno how to set it up. Im on arch + hyprland (wayland) setup.

  • FiskFisk33@startrek.website
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I have this in my hyprland.conf

    input {
        kb_layout = us
        kb_variant = colemak_dh_iso
        kb_model =
        kb_options=
        kb_rules =
    

    You list some other variants with grep -i 'colemak_dh' /usr/share/X11/xkb/rules/base.lst, there are a few.

    • t0mri@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      Yo! Thanks a lot. It works.

      I tried “colemak-dh” instead of “colemak_dh”, thats why it didnt work. My monkey brain didnt think of using underscore.

      I wanna set it up on login shell too. So i tried

      localectl set-keymap  colemak_dh
      

      But it says Failed to set keymap: Keymap colemak_dh is not installed.

      I tried

      [tomri@arch ~]$ localectl list-keymaps | grep colemak
      colemak
      [tomri@arch ~]$
      

      Thanks in advance

      • imecth@fedia.io
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        For the iso variant: localectl --no-convert set-keymap mod-dh-iso-us
        localectl set-x11-keymap us 105 colemak_dh_iso For the ansi variant, switch to 104 and edit iso to ansi

        • t0mri@lemmy.mlOP
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          8 months ago

          Thanks. Just localectl set-keymap mod-dh-ansi-us works.

          Btw how did u find the name . Coz I couldnt find any ref online.

          Thanks again

          • imecth@fedia.io
            link
            fedilink
            arrow-up
            0
            ·
            8 months ago

            Oh and fyi you’ll probably need the second command too if you ever use x11, iirc set-keymap doesn’t convert properly so you need to set it manually localectl set-x11-keymap us 104 colemak_dh