Difference between revisions of "Talk:Xdotool"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(Created page with " xmodmap -pme")
 
m
Line 1: Line 1:
 
  xmodmap -pme
 
  xmodmap -pme
 +
 +
 +
----
 +
 +
 +
read this
 +
* https://theembeddedlab.com/tutorials/simulate-keyboard-mouse-events-xdotool-raspberry-pi/
 +
 +
----
 +
 +
 +
The name of the button can be found this way: run xev, then press the button and the name shows up in the brackets. In my case it was this: keycode 135 (keysym 0xff67, Menu), here Menu is the name of the key.
 +
 +
Then I could run xdotool Menu. However to make it work with a custom shortcut I had to add sleep before it, so I ended up with this code:
 +
 +
sleep 0.5 && xdotool key 'Menu'
 +
sleep 0.01 && xdotool key 's'
 +
sleep 0.01 && xdotool key 'e'

Revision as of 23:40, 19 January 2020

xmodmap -pme




read this



The name of the button can be found this way: run xev, then press the button and the name shows up in the brackets. In my case it was this: keycode 135 (keysym 0xff67, Menu), here Menu is the name of the key.

Then I could run xdotool Menu. However to make it work with a custom shortcut I had to add sleep before it, so I ended up with this code:

sleep 0.5 && xdotool key 'Menu' sleep 0.01 && xdotool key 's' sleep 0.01 && xdotool key 'e'