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

No autorepeat on windows 11 with kmonad-0.4.1 #681

Open
delock opened this issue Feb 11, 2023 · 2 comments
Open

No autorepeat on windows 11 with kmonad-0.4.1 #681

delock opened this issue Feb 11, 2023 · 2 comments

Comments

@delock
Copy link

delock commented Feb 11, 2023

Kmonad version: 0.4.1 prebuilt binary
windows version: 11
sympton: key combinations work well, but no auto repeat, even those keys that is not mapped does not have auto repeat.

To be sure this is not a problem of config file, I created a blank config file which has no alias. Still same behavior.

Also tried both user mode start and start as administrator still get the same.

Config file used.

(defcfg
  ;; For Windows
   input  (low-level-hook)
   output (send-event-sink)

  ;; Comment this if you want unhandled events not to be emitted
  fallthrough true

  ;; Set this to false to disable any command-execution in KMonad
  allow-cmd false
)


(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      up
  lctl lmet lalt           spc            ralt rmet cmp  rctl left down rght
)

(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      up
  lctl lmet lalt          spc             ralt rmet cmp  f11  left down rght
)


@bertbesser
Copy link

bertbesser commented Feb 21, 2023

Fwiw, did you have a look at this and this this? Should give you auto-repeat.

Note: You have to compile yourself, since there's no pre-build binary available. I followed this to build the newest version.

@PockyBum522
Copy link

PockyBum522 commented Aug 10, 2023

Just wanted to drop some extra info that will save anyone doing this a bit of time:

The guide in the last link of the post above worked great on Windows 10. You'll want to build and use the master branch, it fixes key repeat on windows.

You'll need to add two numbers to your defcfg as shown here:

image

In send-event-sink 300 20 as shown, 300 means wait 300ms before starting to repeat and 20 is ms between repeated chars. You might like 500 before repeat start better, but I want mine shorter.

It is absolutely a terrible idea to download exe's from strangers, but here's the build I made from the main branch, today:
https://www.dropbox.com/scl/fi/twmhfidcsaftf5dnmd2vt/kmonad-key-repeat-fixed.exe?rlkey=t2bbk2dl8etrwd06hz9n1wfz6&dl=1

Algorithm : SHA256
Hash : 17E1E1808B12536D4263B9BAD75330437C701346116F1C351D484D32570535BA
Path : Kmonad-Windows\kmonad-key-repeat-fixed.exe

Of note, the keycode-refactor branch looks stale, and although it builds, it does not work when you try to launch it. At least, not when I go by the guide that is the last link in the post above.

slotThe added a commit that referenced this issue Oct 7, 2023
Notable changes:

- Added `around-next-single`, a variant of `around-next` that will
  release its context on any change, as opposed to only on the release
  of the 'arounded' button.
- Added default compose sequence for Ü
- Added a `sticky-key`
- Added `--version` (`-V`) flag
- Added `+,` for  "add a cedilla"
- Added `:timeout-button` keyword to `tap-hold-next` and
  `tap-hold-next-release`, so that they can switch to a button
  other than the hold button when the timeout expires.
- The `multi-tap` key now immediately taps the current key when another
  key is pressed during tapping.
- Fixed compilation error under Mac, having to do with typo in Keycodes.
- Fixed issue with empty-names for uinput-sinks.
- Ignore SIGCHLD to deal with non-termination bug.

---

This should probably be 0.5, but notable issues like [1..6] still
preventing me from being comfortable with that. None of these seem
completely insurmountable, though, so stay tuned :)

[1]: #475
[2]: #704
[3]: #681
[4]: #716
[5]: #516
[6]: #426
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

3 participants