Code Monkey home page Code Monkey logo

ibus-keysend-rs's Introduction

ibus-keysend

Build Status MIT licensed

Send a key event to the IBus daemon (on KKC engine).

Before use, set key shortcuts on IBus-KKC as below,
"(alt j)" : "set-input-mode-hiragana",
"(alt l)" : "set-input-mode-direct",
and it works as a mode shifter between Japanese and English input mode,
or use "key" subcommand with the "keysym" you need.
Values of KeySym and State can be got by "xev".

Install

# Build:
$ git clone https://github.com/gemmarx/ibus-keysend-rs
$ cd ibus-keysend-rs
$ cargo build --release

# The name of command is "ibus-keysend".
$ target/release/ibus-keysend bus

# Install:
$ cp target/release/ibus-keysend PATH/TO/BIN/

Usage

  ibus-keysend [off]
  ibus-keysend on
  ibus-keysend key <keysym> [-m <state>]
  ibus-keysend bus
  ibus-keysend (-h | --help)

Options:
  [off]         Send "Alt-L".
  on            Send "Alt-J".
  key           Send a key event as you like.
  <keysym>      The value of key symbol to send.
  <state>       Modifier state:  logical sum of (Shift(1) | Ctrl(4) | Alt(8)).
  bus           Show the name of unix socket to connect with IBus.

Example

# Send "Ctrl+O"
$ ibus-keysend key 111 -m 4

# Send "Alt+Shift+@"
$ ibus-keysend key 64 -m 9

# Send "Ctrl+Shift+Space"
$ ibus-keysend key 32 -m 5

# Send "Hiragana_Katakana"
$ ibus-keysend key 65319

# Send "Zenkaku_Hankaku"
$ ibus-keysend key 65322

# Send "Eisu_toggle"
$ ibus-keysend key 65328

See also

  • /usr/share/libkkc/rules/default/keymap/*.json
  • /usr/lib/python*/site-packages/ibus/keysyms.py

ibus-keysend-rs's People

Contributors

gemmarx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.