2

I need to start a command on startup. I want to run this command:

xgamma -gamma 0.70

I have used Startup Applications but it doesn't work. I have put the command in the Startup Applications:

Startup application

pomsky
  • 70,557

2 Answers2

3

Thanks, pomsky I have found a way to make it after doing these steps

  1. Create a new text file, say set-xgamma.sh somewhere
  2. add the following lines to the file:

    #!/bin/bash
    sleep 7 
    xgamma -gamma 0.70
    

    and save the file.

  3. Make the script executable.

  4. use this command crontab -e
  5. put @reboot sh $HOME/set-gamma.sh & there with your file path
  6. save it by clicking ctrl+o then ctrl+x to exit and it works :)
pomsky
  • 70,557
2
  1. Create a shell script for the command. Create a new text file, say set-xgamma.sh somewhere and add the following lines to the file:

    #!/bin/bash
    xgamma -gamma 0.70
    

    and save the file.

  2. Make the script executable (refer to this).
  3. In Startup Applications, while editing the program, click Browse... next to the 'Command' textbox and select the set-xgamma.sh file you just created.
pomsky
  • 70,557