I'm trying to set a custom shortcut Alt + - [that's a hyphen] to print an em dash and can't get the right command. echo — doesn't work.
Any ideas what I can do?
I'm trying to set a custom shortcut Alt + - [that's a hyphen] to print an em dash and can't get the right command. echo — doesn't work.
Any ideas what I can do?
xdotool -> link where i found how the tool should work
This program will work only on a xorg system.
sudo apt install xdotool and then when creating a shortcut,
set the command as xdotool key -. This should simulate the key press.
Note that i didn't try this program so i don't know if it works, please comment below if it worked.