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

Disabling some shortcuts #14

Closed
EBazarov opened this issue Dec 13, 2016 · 1 comment
Closed

Disabling some shortcuts #14

EBazarov opened this issue Dec 13, 2016 · 1 comment

Comments

@EBazarov
Copy link

I don't want to use some of shortcuts, for example "pinch", after deleting them from config file,fusuma will crashed after some moment.

If I will use config like this :

swipe:
  3: 
    left: 
      shortcut: 'super+Left'
    right: 
      shortcut: 'super+Right'
    up: 
      shortcut: ''
    down: 
      shortcut: ''
  4:
    left: 
      shortcut: ''
    right: 
      shortcut: ''
    up: 
      shortcut: 'super+a'
    down: 
      shortcut: 'super+s'
pinch:
  in:
    shortcut: ''
  out:
    shortcut: ''

It will print errors in log file, but will be still functional.

You specified the wrong number of args.
Usage: key [options] <keysequence> [keysequence ...]
--clearmodifiers     - clear active keyboard modifiers during keystrokes
--delay DELAY        - Use DELAY milliseconds between keystrokes
--repeat TIMES       - How many times to repeat the key sequence
--repeat-delay DELAY - DELAY milliseconds between repetitions
--window WINDOW      - send keystrokes to a specific window
Each keysequence can be any number of modifiers and keys, separated by plus (+)
  For example: alt+r

Any letter or key symbol such as Shift_L, Return, Dollar, a, space are valid,
including those not currently available on your keyboard.

If no window is given, and there are windows in the stack, %1 is used. Otherwise
the currently-focused window is used
This command consumes all arguments after it, so you cannot chain
 additional commands after it.

I think one of the way hadle it, check if key filed is empty

@iberianpig
Copy link
Owner

Version 0.1.8 released, it allows blank on config.yml

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

No branches or pull requests

2 participants