xdotool : how to enforce lower case letters for : xdotool type 'aaaaa'
Is it possible to enforce that text is be typed in
lower case letters
when executing
xdotool type 'aaaaa'
because i noticed it actually types in capital letters if i have CAPS lock
on, on my keyboard.
UPDATE
this is the only portion in xdotool manual that talks about caps lock but
does not provide an example.
*CLEARMODIFIERS Any command taking the --clearmodifiers flag will attempt
to clear any active input modifiers during the command and restore them
afterwards. For example, if you were to run this command: xdotool key a
The result would be 'a' or 'A' depending on whether or not you were
holding the shift key on your keyboard. Often it is undesirable to have
any modifiers active, so you can tell xdotool to clear any active
modifiers. The order of operations if you hold shift while running
'xdotool key --clearmodifiers a' is this:
Query for all active modifiers (finds shift, in this case)
Try to clear shift by sending 'key up' for the shift key
Runs normal 'xdotool key a'
Restore shift key by sending 'key down' for shift
The --clearmodifiers flag can currently clear of the following:
any key in your active keymap that has a modifier associated with it. (See
xmodmap(1)'s 'xmodmap -pm' output)
mouse buttons (1, 2, 3, 4, and 5)
caps lock*
No comments:
Post a Comment