I tried simulating with xdotool but an exception is raised like
Error: Can't open display: (null) even after trying with export DISPLAY=':0.0'.
What am I missing?
I tried simulating with xdotool but an exception is raised like
Error: Can't open display: (null) even after trying with export DISPLAY=':0.0'.
What am I missing?
Okay, so your real problem here is that you didn't even use xdotool key <keys>
you just used xdotool <keys>
but besides that if you want to send a backtick you need to use xdotool key grave
and for the tilde use xdotool key shift+grave