Última actualització: març de 2016
Xdotool permet fer scripts per a fer coses com pulsacions de tecles, events de ratolí o operacions amb finestres de X-window.
L'instal·lem amb:
apt-get install xdotool
Només algunes de les moltes coses que pot fer
Escriure text:
xdotool type "el meu text"
Ratoli:
xdotool mousemove x y click 1
Teclat:
xdotool key Alt+Tab
SI el volem fer en una pantalla determinada:
xdotool search --name [nom de la finestra] key Alt+Tab
Com a valor de tecla li podem passar qualsevol valor de X Keysym. Els més comuns:
BackSpace 0xFF08 Erase the previous character, unlike loadkeys, Delete does not do the same thing
Tab 0xFF09
Linefeed 0xFF0A Linefeed, LF
Return 0xFF0D Return, enter
Escape 0xFF1B
Delete 0xFFFF Erase the character under the cursor. This is the same as Rubout in loadkeys.
Home 0xFF50
Left 0xFF51 Move left, left arrow
Up 0xFF52 Move up, up arrow
Right 0xFF53 Move right, right arrow
Down 0xFF54 Move down, down arrow
Prior 0xFF55 Prior, previous; Page_Up is a synonym
Next 0xFF56 Next; Page_Down is a synonym
End 0xFF57 EOL
Begin 0xFF58 BOL
Shift_L 0xFFE1 Left shift
Shift_R 0xFFE2 Right shift
Control_L 0xFFE3 Left control
Control_R 0xFFE4 Right control
Caps_Lock 0xFFE5 Caps lock
Shift_Lock 0xFFE6 Shift lock
Meta_L 0xFFE7 Left meta
Meta_R 0xFFE8 Right meta
Alt_L 0xFFE9 Left alt
Alt_R 0xFFEA Right alt
Super_L 0xFFEB Left super
Super_R 0xFFEC Right super
Hyper_L 0xFFED Left hyper
Hyper_R 0xFFEE Right hyper
3270_Enter 0xFD1E
space 0x020
La llista completa la podem veure a: http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap