Announcement

Collapse
No announcement yet.

How to launch a command at startup? <solved>

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to launch a command at startup? <solved>

    My scroll lock key doesn't work and after alot of searching I found out that I had to find an unused modifier and assign the key to it!

    Mod3 is free so I now need to add this command somewhere to launch it at startup:

    Code:
    add mod3 = Scroll_Lock
    but I don't know where to add it! I tried adding it to .xsession in my home directory but this stopped Linux from booting. I then added it .xinit but it didn't execute.
    Where should I be adding it?

    Thanks!

    #2
    Re: How to launch a command at startup?

    OK, solved this!
    Created the following file and added it do $HOME/.kde/Autostart/

    Code:
    #!/bin/bash
    xmodmap -e 'keycode 78 = Scroll_Lock'
    xmodmap -e 'add mod3 = Scroll_Lock'
    exit 0

    Comment

    Working...
    X