ydokey
Version, currently 0.4.39 versions
github.com/mamantoha/ydokey
A simple command-line utility for Linux to convert key commands to raw keycodes which used in ydotool
Installation
# Add this to your shard.yml
dependencies:
ydokey:
github: mamantoha/ydokey
version: ~> 0.4.3Then run:
shards installshard.yml
- Crystal
1.15.1- License
- MIT
- Author
- Anton Maminov
- Target
ydokeyfrom src/cli.cr
Dependencies
This version declares no dependencies.
README
ydokey
A simple command-line utility for Linux to convert key commands to raw keycodes which used in ydotool
The Why & The How
From ydotool key:
Since there's no way to know how many keyboard layouts are there in the world, we're using raw keycodes now.
Syntax:
<keycode>:<pressed>See
/usr/include/linux/input-event-codes.hfor available key codes (KEY_*).
For example Ctrl+F8.
What you want is:
ydotool key 29:1 66:1 29:0 66:0
With ydokey you can do the same with:
ydotool key $(ydokey -k Ctrl+F8)
See ydokey -h for more info.
Installation
Contributing
- Fork it (https://github.com/mamantoha/ydokey/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Anton Maminov - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.3- Tagged
- Mar 6, 2025
- Commit
bb625d71d168- Crystal
1.15.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/mamantoha/ydokey
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 9