Results 1 to 3 of 3

Thread: Annoyance Alert: .Xmodmap and KDE3.5 on i586

  1. #1
    Join Date
    Jul 2009
    Location
    Montréal, Canada
    Posts
    54

    Default Annoyance Alert: .Xmodmap and KDE3.5 on i586

    Hi,

    I'm having a very acute annoyance here. My KDE3 just won't load .Xmodmap upon starting.

    I've used 11.1 x86-64 for a few months now, and find the compose key marvellous (use it as Windows right key) and even better than windows alt codes! I had to, if I recollect correctly, to create .Xmodmap in ~, which was
    Code:
    keycode 116 = Multi_key
    and that's it.
    And it worked in both Gnome and KDE3.

    Now, using another computer, with freshly installed 11.1 i586 (+ latest updates). The multi key does work in Gnome (gives a prompt upon starting it to load .Xmodmap), but not at all in KDE3... So this rules out any keyboard incompatibility, since it works in one place.

    I saw here http://tinyurl.com/lo639o the suggestion to create keyboard.sh, in /home/pbl/.kde/Autostart, (pbl is me) which is
    Code:
    #!/bin/sh
    /usr/bin/xmodmap $HOME/.Xmodmap
    It works, but only if I run the script manually by clicking on it... Perhaps it has to be different in openSUSE?

    File details are:

    -rwxr-xr-x 1 pbl users 24 2009-09-10 11:03 .Xmodmap

    -rwxr-xr-x 1 pbl users 41 2009-09-10 11:38 keyboard.sh

    Question:
    Could you tell me how to make that keyboard.sh run automatically when starting KDE3?

    By the way, can I also extend the use of my .Xmodmap to the terminal consoles (ttys) ? (I guess not since it starts with X... but perhaps some substitute is around?) Well I tried to run the .Xmodmap in tty, but it says 'unable to open display'. In fact all I would like in tty is to have multi key added.

    Thank you.
    Last edited by p_barill; 10-Sep-2009 at 09:05. Reason: added detail

  2. #2

    Default Re: Annoyance Alert: .Xmodmap and KDE3.5 on i586

    I find using env vars in scripts can cause unexpected behavior have you tried the whole path where you used $HOME?
    Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
    If I've helped click on the Rep button I don't know what it does but it sounds cool.

  3. #3

    Default Re: Annoyance Alert: .Xmodmap and KDE3.5 on i586

    I have the following lines in my ~.xinitrc that do the trick

    Code:
    if [ -x /usr/bin/xmodmap ]; then
      /usr/bin/xmodmap ~/.Xmodmap
    fi
    Caspar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •