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

[macos] Cannot translate from mac keycode: (12,568) #817

Open
Alounv opened this issue Feb 17, 2024 · 2 comments
Open

[macos] Cannot translate from mac keycode: (12,568) #817

Alounv opened this issue Feb 17, 2024 · 2 comments

Comments

@Alounv
Copy link

Alounv commented Feb 17, 2024

I have this error message from time to time since I installed my new Unicorne split keyboard (it's a Corne basically).
When it happens kmonad shuts down.

Encountered error in KeySource: [Cannot translate from mac keycode: (12,568)]
kmonad: [Cannot translate from mac keycode: (12,568)]

Any idea what could be wrong, could we just ignore the error instead of crashing the whole program?

@Erlendms
Copy link

I have "the same" issue:

Encountered error in KeySource: [Cannot interpret mac switch: 205,Cannot translate from mac keycode: (12,4294967295)]
kmonad: [Cannot interpret mac switch: 205,Cannot translate from mac keycode: (12,4294967295)]

@Alounv
Copy link
Author

Alounv commented Mar 17, 2024

@Erlendms for information, my workaround is to wrapp the kmonad launch in a retry inside my .zshrc (if you use zsh).

retry() {
    local retries=20
    local delay=1
    local count=0

    while [[ $count -lt $retries ]]; do
        if "$@"; then
            return 0
        fi
        count=$((count + 1))
        sleep $delay
    done

    return 1
}

alias kmo="retry sudo kmonad ~/.config/kmonad/aloun.kbd"

Then I launch kmonad with kmo in my terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants