[nylug-talk] Xmodmap or KDE global shortcut to insert text?

Ju. ju at jurun.org
Mon Oct 22 11:44:09 EDT 2007


On 10/21/07, Sunny Dubey <sunny at opencurve.org> wrote:
> On Sunday 21 October 2007 01:14:07 pm Judd Maltin wrote:
> > I'm working at a company that has an insanelyLongFQDN.com. Typing it in
> > all the time sucks. I've looked around at xmodmap and kde's global
> > shortcuts, but I can't find anything that will like me paste in the text
> > with just a few keystrokes. Sure, in gnu-screen I'm doing a 'bind e
> > stuff insanelyLongFQDN.com', but I want it to work everywhere. Am I
> > googling completely wrong?
>
> Support for KDE short cuts is there.
>
> go to control center --> Regional and Accessibility --> Input Actions
>
> Select examples and look at the "type hello" example to do what you want.
>
> Alternatively if you have root or know who is root, just add an entry in
> the /etc/hosts file.
>
> --
> Sunny Dubey
>
>   mail:  sunny at audiowiki.org
>   tele:  212.333.3542
>



Hi !


We have fairly long hostname here too... I survive with two shell tricks :

 -  cat ~/.inputrc
"\e[5~": history-search-backward
"\e[6~": history-search-forward
set completion-query-items 350

So I can use the history while tying a command (completion is done
with PageUP/Down keys)

 - for ssh, you can tweak your own ~/.ssh/config file :

Host nagios
  Hostname nagios-nyc-0001-prod.mycompanynameisjusttoolong.com


So ssh nagios will work fine.


If it's only your domain which is long you can use /etc/resolv.conf to
ease your day to day command :

 cat /etc/resolv.conf
search mycompanynameisjusttoolong.com


so in the previous example ssh nagios-nyc-0001-prod will work fine
without any editing.


   Julien.


More information about the nylug-talk mailing list