0

I recently switched over from using windows where I used to use AutoHotKey for a few temporary shortcuts and key remapping. This is a small section of the code I used:

d::
{ 
   sendinput, [ 
   sleep, 30
   sendinput, !o 
   sleep, 30
}

Pressing d would would automatically type out [, and o. I tried to do the same on sxhkd, but pressing the d key results in nothing, no d, [ or alt+o. Here's what I've tried:

d
    xdotool type --delay 30 "["
    sleep 30ms
    xdotool type --delay 30 "alt+o"
    sleep 30ms

I've tried a few other solutions, But none of them seem to work. Interestingly, replacing d with a mouse button, like button1 does make the program work, however, it only types "[" and not the alt+o.

On doing this:

d
    notify-send "Key event: d"

the system does detect that the d key is pressed, But none of the above commands can be executed with keyboard keys, only mouse buttons. Help is appreciated.

0 Answers0