You are not logged in.
Pages: 1
I'd like to bind a text string to a function key, in an application-independent manner (e.g. whenever I press F12 it issues my phone number to whatever app has focus).
Can this be done in Xfce?
This is for Fedora 20, Xfce version 4.10
Thanks,
Bob
Last edited by bobdrad (2014-10-24 21:44:03)
Offline
Try creating an application shortcut (Settings Manager >> Keyboard >> Application Shortcuts) that uses the following command:
bash -c "sleep 0.5 && xdotool type 'my@email.com '"
...and assign it to the F12 key.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Lol - brilliant! I wonder why the sleep is necessary however? I experimented without it, and it didn't work, so it is really required for some reason...
I was stuck looking for a solution like xmodmap or loadkeys and couldn't get them to work. This is good out-of-box thinking.
Thanks!
Bob
Offline
Yeah, its like the command executes too quickly. Learned long ago to delay it slightly.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Have you filed a bug?
Offline
Pages: 1
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 525.48 KiB (Peak: 526.76 KiB) ]