S
S
Sergey Goryachev2016-05-19 10:20:06
linux
Sergey Goryachev, 2016-05-19 10:20:06

How to add a script to Linux Mint Startup?

Good afternoon.
I have a simple script:

#!/bin/bash
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DVI-I-1 1920x1080_60.00
xrandr --output DVI-I-1 --mode 1920x1080_60.00

Adds a new screen resolution for a monitor that is connected via a DVI connector.
Since DVI is not displayed correctly (more correctly, it is completely incorrect).
Actually the question is how to file this business into autoload?
So that every time you turn it on you don’t have to do it manually.
UPD: I tried this instruction - losst.ru/avtozagruzka-v-linux-mint-17
5d09dea5912b4b91be466f98920973b4.png
Nothing works when loading. Reply "Why?" do not know how.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Nikolaev, 2016-05-19
@webirus

You need to add your script to /etc/profile.d/ with an arbitrary name, but with the extension .sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question