Skip to content

Instantly share code, notes, and snippets.

@Bigsby
Created December 20, 2018 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigsby/c5aafbecb9cf6fb4b79d7efe57e3ae7a to your computer and use it in GitHub Desktop.
Save Bigsby/c5aafbecb9cf6fb4b79d7efe57e3ae7a to your computer and use it in GitHub Desktop.

copy to bash

AUTOSTART_FOLDER=~/.config/autostart
AUTOSTART_SCRIPTFILE=$AUTOSTART_FOLDER/.desktop
SCRIPT_FILE=~/set-dislay.sh
if [ ! -d "$AUTOSTART_FOLDER" ]; then
 mkdir $AUTOSTART_FOLDER; 
fi
echo -e "xrandr --output eDP-1 --scale .5x.5\n" > $SCRIPT_FILE
chmod +x $SCRIPT_FILE
echo "[Desktop Entry]
Type=Application
Exec=$SCRIPT_FILE
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Set SP display" > $AUTOSTART_SCRIPTFILE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment