Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: remap fn key nixos-asahi m1 #1202

Open
1 task done
aspauldingcode opened this issue Aug 16, 2024 · 1 comment
Open
1 task done

help: remap fn key nixos-asahi m1 #1202

aspauldingcode opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@aspauldingcode
Copy link

Requirements

Describe the bug

I'm not sure how to remap macbook air fn key to left control.

Relevant kanata config

my config:

{ config, pkgs, lib, ... }:

{
  services.kanata = {
    enable = true; # Enable the Kanata service
    
    keyboards = {
      "internalKeyboard" = {
        devices = [ "/dev/input/event2" ]; # Use the event associated with your internal keyboard
        
        config = ''
          (defsrc
            grv  1    2    3    4    5    6    7    8    9    0    -    =    bspc
            tab  q    w    e    r    t    y    u    i    o    p    [    ]    \
            caps a    s    d    f    g    h    j    k    l    ;    '    ret
            lsft z    x    c    v    b    n    m    ,    .    /    rsft
            lctl lalt lmet           spc            ralt rmet rctl
          )

          (deflayer default
            grv  1    2    3    4    5    6    7    8    9    0    -    =    bspc
            tab  q    w    e    r    t    y    u    i    o    p    [    ]    \
            caps a    s    d    f    g    h    j    k    l    ;    '    ret
            lsft z    x    c    v    b    n    m    ,    .    /    rsft
            lctl lmet lalt           spc            ralt rmet rctl
          )

          (deflayer dvorak
            grv  1    2    3    4    5    6    7    8    9    0    [    ]    bspc
            tab  '    ,    .    p    y    f    g    c    r    l    /    =    \
            caps a    o    e    u    i    d    h    t    n    s    -    ret
            lsft ;    q    j    k    x    b    m    w    v    z    rsft
            lctl lmet lalt           spc            ralt rmet rctl
          )
        ''; # The config must be a string, written in Kanata's expected format
      };
    };
  };
}

To Reproduce

not really a bug

Expected behavior

replace left fn key with control (so control is left fn and left control key on the built-in macbook air keyboard)

Kanata version

kanata 1.6.1

Debug logs

No response

Operating system

Linux

Additional context

No response

@aspauldingcode aspauldingcode added the bug Something isn't working label Aug 16, 2024
@jtroo
Copy link
Owner

jtroo commented Aug 16, 2024

What does evtest show when pressing the fn key?

@jtroo jtroo removed the bug Something isn't working label Aug 16, 2024
@jtroo jtroo added the question Further information is requested label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants