https://github.com/mamantoha/ydokey
A simple command-line utility for Linux to convert key commands to raw keycodes which used in ydotool
https://github.com/mamantoha/ydokey
cli crystal linux snapcraft
Last synced: 12 months ago
JSON representation
A simple command-line utility for Linux to convert key commands to raw keycodes which used in ydotool
- Host: GitHub
- URL: https://github.com/mamantoha/ydokey
- Owner: mamantoha
- License: mit
- Created: 2022-06-16T12:38:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-06T17:51:45.000Z (about 1 year ago)
- Last Synced: 2025-03-06T18:37:02.796Z (about 1 year ago)
- Topics: cli, crystal, linux, snapcraft
- Language: Crystal
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ydokey
[](https://crystal-lang.org/)
[](https://github.com/mamantoha/ydokey/actions/workflows/crystal.yml)
[](https://github.com/mamantoha/ydokey/releases)
[](https://snapcraft.io/ydokey)
A simple command-line utility for Linux to convert key commands to raw keycodes which used in [ydotool](https://github.com/ReimuNotMoe/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: `:`
>
> See `/usr/include/linux/input-event-codes.h` for 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
[](https://snapcraft.io/ydokey)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer