Skip to content

Instantly share code, notes, and snippets.

@litszwaiboris
litszwaiboris / README.md
Created August 24, 2022 03:16
How to change resolution and refresh rate in GNOME desktop every time you boot up using a script and a desktop file.

1. Create a executable script. 🙂

Open your terminal first: Press the start button and type terminal and select the Console, Konsole, Terminal or anything but in the result of search.

Use your desired editor to create a new file with .sh in the end of the file at any places. Just remember don't delete it.

For vim, you type vi and path of your like.

Example: vi /home/user/abc.sh

For nano you type nano and path of your like.

Example: nano /home/user/abc.sh

2. Getting the "modeline" thingy 😎

Before we get to the editing part, you need something named "modeline" which represents your configuration by into numbers code.

Exit the editor.