I've created a simple startup script so that I can use my Ultrawide Monitor with Ubuntu 21.04 (should be similar with the previous version as well). However when I configured this script to be run on startup using 'Autostart' I get an error upon startup instead with the script unable to run. Manually running the script works fine - It's a pain to run it on every start manually....
Anyhow I get this error:
Warning: Could not start program '/home/user/scripts/2560x1080.sh' with arguments '/home/user/scripts/2560x1080.sh'.
Warning: execve: Exec format error
Also, here's the simple script:
#! /bin/bash
#cd /home/user/scripts/
xrandr --newmode "2560x1080_60.00" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
xrandr --addmode HDMI-2 2560x1080_60.00
xrandr --output HDMI-2 --mode 2560x1080_60.00
Thanks in advance