Good evening Linux community…
I am a new user of the Linux system (Manjaro Distribution) and I am really enjoying it, it has served me very well.
However, I used an application on Windows that I could “program” certain events when pressing a keyboard key.
By pressing the “F1” key it sends letters “A” and “B”.
By pressing and holding the “F2” key it sends every 3 seconds (until I release the “F2” key), the “C” and “D” keys.
I searched the internet on how to make this determination function on my system in the simplest way possible, I found tools like AutoKey and xdotool.
My question is, do both programs allow me to do the certain function I would like?
And what is the “cleanest”, “fastest” and “efficient” way to do this particular function?
As an example, I have this piece of code in xdotool, in case I need to create a condition before it executes this command (keypress condition).
while true do # Do something to block while key isn't down xdotool keydown --window $winid "x" xdotool keyup --window $winid "x" done
Thanks and sorry for English, it’s not my native language.