Professional Web Applications Themes

Adding xmodmap command to startup. - Linux Setup, Configuration & Administration

Hi! I'd like to add the following command to the "startup procedure". xmodmap -e 'keycode 103 = Down' I'm running Mandrake 9.2 with KDE. Anyone who could tell me which file to include the above command so that it is run automagically whenever I start my computer? Help will be appreciated:) Anders...

  1. #1

    Default Adding xmodmap command to startup.

    Hi!

    I'd like to add the following command to the "startup
    procedure".

    xmodmap -e 'keycode 103 = Down'


    I'm running Mandrake 9.2 with KDE.

    Anyone who could tell me which file to include
    the above command so that it is run automagically
    whenever I start my computer?

    Help will be appreciated:)

    Anders
    Anders Guest

  2. #2

    Default Re: Adding xmodmap command to startup.

    Anders Gjendemsjø wrote:
     
    /etc/rc.local
    Jesper Guest

  3. #3

    Default Re: Adding xmodmap command to startup.

    On Sat, 24 Jan 2004, Jesper Mouridsen wrote:
     
    > /etc/rc.local[/ref]

    When I included the above command in /etc/rc.local it still doesn't
    work.

    What works is typing the command in a terminal windows once
    I've started my computer. But that is not the solution I was
    looking for.

    Anders

    Anders Guest

  4. #4

    Default Re: Adding xmodmap command to startup.

    In article <stud.ntnu.no>, Anders
    Gjendemsjø wrote:
     

    I don't use KDE but I seem to remember there should be a directory in your
    home directory called .Autostart or similar. It's hidden. Write a script:

    #!/bin/sh
    xmodmap -e 'keycode 103 = Down'

    Then make it executable and put it in ~/.Autostart.

    --
    Juha Siltala
    http://www.edu.helsinki.fi/activity/people/jsiltala/
    Juha Guest

  5. #5

    Default Re: Adding xmodmap command to startup.

    On Sat, 24 Jan 2004, Juha Siltala wrote:
     
    >
    > I don't use KDE but I seem to remember there should be a directory in your
    > home directory called .Autostart or similar. It's hidden. Write a script:
    >
    > #!/bin/sh
    > xmodmap -e 'keycode 103 = Down'
    >
    > Then make it executable and put it in ~/.Autostart.
    >
    > --
    > Juha Siltala
    > http://www.edu.helsinki.fi/activity/people/jsiltala/[/ref]

    On my computer there was no .Autostart directory. I even added one
    and created a executable script, but with no luck I'm afraid...

    Anders
    Anders Guest

  6. #6

    Default Re: Adding xmodmap command to startup.

    Anders Gjendemsjø wrote: 

    You should insert this in the .xinitrc file of the account that launch X
    (that should be your own account or some other account if X is started
    at start (like xdm or kdm))
     

    Except for determining which user starts X11, this is irrelevant:
    xmodmap is a "pure" X11 command (it does not depend on which window
    manager is used), but thanks anyway for helping french Linux industry ;o)

    AlV Guest

  7. #7

    Default Re: Adding xmodmap command to startup.

    Anders Gjendemsjø uttered the immortal words:
     [/ref]
     

    Follow the above instructions but put the script in ~/.kde/Autostart. Mine
    works perfectly there.

    --
    Andy.
    Andy Guest

  8. #8

    Default Re: Adding xmodmap command to startup.

    On Sat, 24 Jan 2004, Andy Fraser wrote:
     [/ref]

    >
    > Follow the above instructions but put the script in ~/.kde/Autostart. Mine
    > works perfectly there.
    >
    > --
    > Andy.[/ref]

    Thanks, that did the trick:)

    Anders
    Anders Guest

Similar Threads

  1. KDE UI startup from command line
    By Xu, Feng in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: August 9th, 04:05 PM
  2. Problem caused by Startup command /L:ENG
    By steve in forum Windows XP/2000/ME
    Replies: 1
    Last Post: July 8th, 06:42 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139