HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ydotool — Control keyboard and mouse inputs via commands in a way that is display server agnostic. More inform

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandkeyboardydotoolandclicontrolinputsmouse
linux

Problem

How to use the ydotool command: Control keyboard and mouse inputs via commands in a way that is display server agnostic. More information: <https://github.com/ReimuNotMoe/ydotool#usage>.

Solution

ydotool — Control keyboard and mouse inputs via commands in a way that is display server agnostic. More information: <https://github.com/ReimuNotMoe/ydotool#usage>.

Start the ydotool daemon in the background:
ydotoold


Perform a <LeftClick> input:
ydotool click 0xC0


Perform a <RightClick> input:
ydotool click 0xC1


Input <Alt F4>:
ydotool key 56:1 62:1 62:0 56:0

Code Snippets

Start the ydotool daemon in the background

ydotoold

Perform a `<LeftClick>` input

ydotool click 0xC0

Perform a `<RightClick>` input

ydotool click 0xC1

Input `<Alt F4>`

ydotool key 56:1 62:1 62:0 56:0

Context

tldr-pages: linux/ydotool

Revisions (0)

No revisions yet.