github.com/mamantoha/ydokey

A simple command-line utility for Linux to convert key commands to raw keycodes which used in ydotool

6 stars
0 dependents
License: MIT

Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  ydokey:
    github: mamantoha/ydokey
    version: ~> 0.4.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.4.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

ydokey

Built with Crystal Crystal CI GitHub release 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.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

Get it from the Snap Store

Contributing

  1. Fork it (https://github.com/mamantoha/ydokey/fork)
  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