xfce4-terminal bind string to key?
Ulli Horlacher
framstag at rus.uni-stuttgart.de
Mon Jul 19 11:34:22 CEST 2021
On Sun 2021-07-18 (22:34), Silvio Knizek wrote:
> > Is it possible with xfce4-terminal to bind a string to a key?
>
> not directly with xfce4-terminal
It's a pity...
> but with a combination of general keyboard shurtcuts to launch
> applications and »xdotool« to check for the Terminal and enter the key
> sequence.
>
> ```bash
> bash -c '[[ "$(xdotool getactivewindow getwindowname)" =~ Terminal ]] && sleep 0.1 && xdotool key --delay 10 --clearmodifiers "0" "0" "0" "0" "space" "T" "e" "s" "t"'
> ```
>
> Bind this in xfce4-keyboard-settings to Ctrl+0 (I really suggest the
> Ctrl here, else the 0 on the numpad can't be used in other applications
> anymore).
No, I REALLY need to bind the numpad without a modifier key and only for
xfce4-terminal, because I run a VMS editor emulation within.
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher at tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF:<bc9fdf6bf34cf52f152619fb5a41dd7f71ab974b.camel at gmx.net>
More information about the Xfce
mailing list