Linux: xvkbd tutorial
xvkbd is command line tool that lets you send a keyboard key signal or mouse click.
# install xvkbd sudo apt-get install xvkbd
xvkbd Command Example
# this command sends the key control+c xvkbd -no-jump-pointer -xsendevent -text '\Cc'
# this command sends mouse left click xvkbd -no-jump-pointer -xsendevent -text '\m1'
xvkbd key syntax
|Print Screen (Print Screen)|
|Scroll Lock (Scroll Lock)|
|Shift (modify the next character)|
|Ctrl (modify the next character)|
|Alt (modify the next character)|
|Meta (modify the next character)|
|keysym is X11's key syntax. (For example, |
|mouse left click|
|mouse middle click|
|mouse right click|
|mouse click of the specified mouse button. [see Linux: X11 Mouse Button Numbering]|
Bind Keys to Command
For xvkbd to be useful, you need to bind keys to command.
For example, make F2 do Ctrl+c.
- Keyboard Software Guide
- Swap Control Alt Keys
- Set F2 F3 F4 to Cut Copy Paste
- Swap CapsLock Escape Keys
- Make CapsLock Do Home Key
- Setup Shift Lock Key
- Add Keyboard Shortcut to Switch App
- Set Key Repeat Rate
- Set System Keyboard Layout
- How to Switch to Dvorak Keyboard Layout
- Change Volume by Command
- Find Keyboard Key Scancode
- X11 Keyboard Key Names
If you have a question, put $5 at patreon and message me.