GithubHelp home page GithubHelp logo

Comments (4)

jtroo avatar jtroo commented on July 19, 2024

I need a bit more detail to understand the problem.

lmet as layer toggle

What are the relevant defsrc and deflayer configurations?

It did not recognize anymore lmet+rightclick

I'm not sure what this means. Are you saying that you have some workflow that uses lmeta and right click at the same time which no longer works? Or that the lmeta and right click are both individually broken? Or maybe something else?

I tried adding mlft,mmid,mrght to defrc . It didn't work

The mouse buttons are special in kanata so this isn't expected to work.

from kanata.

13minutes-yt avatar 13minutes-yt commented on July 19, 2024

this is a part of my file

(deflayer qwerty
  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 @winl lalt           spc            ralt rmet rctl
)
(deflayer win
  grv M-1   M- 2   M- 3   M- 4   M- 5    _    XX    @wk8    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
)
(defalias
  winl (layer-toggle win)
)

if I hold lmet it will toggle win layer. Pressing lmet-right click will not work because my window manager will not recognize holding lmet as a modifier.
if I press lmet and 1, it is as if the layer toggle did not occur
If I press lmet and 6, it will print 6
if I press lmet and 7, no action

what I was trying to do is if mrgt is in defrc, I can do same as M-1 in place of the mrght (M-mrght)

from kanata.

13minutes-yt avatar 13minutes-yt commented on July 19, 2024

I have found a workaround by assigning esc to lmet
eesc (tap-dance 200 (esc (one-shot 1000 lmet))) by using the new features :)

from kanata.

jtroo avatar jtroo commented on July 19, 2024

Hm it's not clear to me if there's a bug in how kanata handles this. I tried a minimally reproducible sample and it behaves as I expect:

(defsrc 1 lmet)

(deflayer base 1 (layer-toggle meta))

(deflayer meta M-tab 1)

Holding down lmeta and pressing 1 generates M-tab as expected.

If you'd like to debug this further, please try running kanata with the --debug flag and comment with the debug logs showing your original issue being reproduced. Otherwise feel free to close the bug if you don't think it's an issue.

from kanata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.