Skip to content

Instantly share code, notes, and snippets.

@funkotron
Created February 8, 2014 08:35
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 funkotron/8878585 to your computer and use it in GitHub Desktop.
Save funkotron/8878585 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Set up external monitor if connected
EXTERNAL=`xrandr | grep -i "HDMI1 disconnected"`
if [ -z $EXTERNAL ]; then
xrandr --output HDMI1 --auto --left-of eDP1
fi
sleep 1
#Set up main monitor
xrandr --output eDP1 --auto
#Load wallpaper
/home/a/bin/random_wallpaper.sh &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment