Code Monkey home page Code Monkey logo

Comments (7)

Shinyzenith avatar Shinyzenith commented on August 29, 2024 1

This is a known bug, we have implemented chords in the config but daemon doesn't support it yet.
Eden, who is working on it is currently sick so it'll be implemented as soon as they're back!

from swhkd.

EdenQwQ avatar EdenQwQ commented on August 29, 2024

@xircon would you mind trying out the new branch where we implemented a new feature called modes, which is supposed to work similar to chords but with a greater readability and functionality.

The basic syntax of key modes:

# the default mode is `normal` mode, which is always on the bottom of the mode stack
super + m
    # commands starting with `@` are internal commands. Internal commands can be combined with normal commands with `&&`
    # @enter will push a mode into the mode stack
    @enter music && echo music > .swhkd_mode

mode music # define a mode with the `mode` statement
super + {n,p,space}
    mpc {next,prev,pause}
q
    @escape # an internal command to pop the current mode out of the mode stack
endmode # end a mode definition with `endmode`

from swhkd.

xircon avatar xircon commented on August 29, 2024

Seems to work OK, need to get my head around it, will have some questions 😄
First one:

  • @Enter music && echo music > .swhkd_mode
    This is set, but never unset? The file always contains music.

  • KP_Add & KP_Subtract don't work as keys.

from swhkd.

EdenQwQ avatar EdenQwQ commented on August 29, 2024

Thanks for your tests

  • that .swhkd_mode is for something like waybar integration and I forgot to write echo normal > .swhkd_mode after the @escape
  • Will check out the key issue later

from swhkd.

Shinyzenith avatar Shinyzenith commented on August 29, 2024

Seems to work OK, need to get my head around it, will have some questions smile First one:

  • @Enter music && echo music > .swhkd_mode
    This is set, but never unset? The file always contains music.
  • KP_Add & KP_Subtract don't work as keys.

Hi kpsubtract and kpplusminus exists, can you try binding them?

from swhkd.

xircon avatar xircon commented on August 29, 2024

@Shinyzenith - kpminus works for the "-" key (numeric keypad), kpplusminus is valid, but does nothing as do all combinations I invented which all error 😄

from swhkd.

Shinyzenith avatar Shinyzenith commented on August 29, 2024

Chords should work now, if you face any issue then please make a new ticket 😁.

from swhkd.

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.