Comments (8)
https://github.com/joshgoebel/keyszer/blob/exerted/UPGRADE_FROM_XKEYSNAIL.md
Thoughts?
from keyszer.
Instructions on "upgrading" seem pretty thorough. You're really changing a lot.
What about renaming the "ignore_key" to "ignore_combo" since that is what it is actually meant to be applied to, a combo.
from keyszer.
I'm not opposed, you want to make a PR for that? :)
from keyszer.
I see it in transform.py
, but it looks like it's imported from elsewhere (an API file?). No, I don't really want to mess with that.
If I'm reading this right, this and pass_through_key
are actually dealing with one key at a time in the for
loop as the combo
is disassembled(?), so I guess it's just a point of view which naming is more confusing from the perspective of someone looking at the code loops or just editing shortcuts in the config file.
elif command is ignore_key:
debug("ignore_key", key)
return True
elif command is pass_through_key:
debug("pass_thru_key", key)
_output.send_key_action(key, action)
return True
from keyszer.
pass_throught_key
is gone now...
but it looks like it's imported from elsewhere
This is what global search and replace is for. :) And you have me reviewing PRs to make sure you don't break anything.
from keyszer.
Is this when
condition something that would only be attached to modmaps with just a few key remaps, or is it possible this would be used on a keymap with hundreds of shortcuts? This could be quite annoying/confusing having one part of the information saying what the shortcuts are applying to at the top, and another part at the bottom with many lines in between.
# after
multipurpose_modmap("Microsoft keyboard combos", {
Key.LEFT_SHIFT: [Key.KPLEFTPAREN, Key.LEFT_SHIFT],
Key.RIGHT_SHIFT: [Key.KPRIGHTPAREN, Key.RIGHT_SHIFT]
}, when = lambda ctx: ctx.device_name.startswith("Microsoft")
)
from keyszer.
It's Python... you can specify the arguments in any order IF you use their names, if this really bothered someone they can just put the when =
first and then do mappings =
to put the mappings after... I think in most cases the description should explain what is happening without a need to read the conditional...
from keyszer.
I'm also open to suggestions but I don't like varying # of arguments with no explanation or a blank None argument...
from keyszer.
Related Issues (20)
- updated to the latest from main repo, but does not detect devices HOT 10
- Failed to install keyszer under Kubuntu 22.10 HOT 7
- Default config freezes when `{Key.CAPSLOCK: [Key.ESC, Key.LEFT_CTRL]}` enabled HOT 6
- Mouse is being grabbed as keyboard HOT 6
- Idea: Interleave press/release of input/actual instead of suspending HOT 16
- Support double taps HOT 3
- Output from string/Unicode helpers broken when CapsLock is ON HOT 29
- (enh) Add environment awareness module HOT 7
- Question: Can modmaps be dynamic per keystroke? HOT 9
- (enh) Implement throttle delays on keystrokes HOT 1
- Breaks with latest systemd HOT 14
- New virtual device created every time keyszer starts? HOT 2
- Lack of window leads to AttributeError. HOT 6
- Merge keymaps' nested keys HOT 1
- Log output I haven't seen before HOT 2
- Blocking a modifier from emitting alone? HOT 18
- Adding type hinting?
- Last python3-xlib incompatibility HOT 2
- Stickykeys mode - hold modifiers and subsequent key presses for x ms. HOT 2
- Fedora 38: high CPU load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyszer.