Skip to content

Instantly share code, notes, and snippets.

@lopezator
Created July 13, 2021 12:19
Show Gist options
  • Select an option

  • Save lopezator/a8fa1f7b4464ce494978070665510ee1 to your computer and use it in GitHub Desktop.

Select an option

Save lopezator/a8fa1f7b4464ce494978070665510ee1 to your computer and use it in GitHub Desktop.

Revisions

  1. lopezator created this gist Jul 13, 2021.
    40 changes: 40 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    * Use English International with dead keys

    Make both super keys work:

    nano /usr/share/X11/xkb/symbols/pc

    Change:

    key <RWIN> { [ Super_R ] };

    To:

    key <RWIN> { [ Super_L ] };

    Make fn keys secondary:

    - Use windows layout in keyboard (physical key)
    - In the dell keyboard change it in bios POST settings (press F2 to login into bios)
    - Edit /etc/modprobe.d/hid_apple.conf (create if doesn't exist)

    Add:

    options hid_apple fnmode=2

    Execute:

    sudo update-initramfs -u -k all

    - Reboot

    If it doesn't work:

    Try pressing: Fn + X + L for 3 seconds

    Bibliography:

    https://www.reddit.com/r/MechanicalKeyboards/comments/g41uv3/keychron_k2_fn_lock_win/
    https://www.reddit.com/r/MechanicalKeyboards/comments/d5io49/keychron_k2_f_keys_dont_work_w_linux_help/
    https://askubuntu.com/a/1154371
    https://github.com/Kurgol/keychron/blob/master/k2.md