Skip to content

Instantly share code, notes, and snippets.

@ptrxyz
Created March 16, 2016 17:03
Show Gist options
  • Save ptrxyz/98ec228267b61136ae81 to your computer and use it in GitHub Desktop.
Save ptrxyz/98ec228267b61136ae81 to your computer and use it in GitHub Desktop.
#!/bin/bash
LOCKFILE=/tmp/.xrandrlock
[ -e $LOCKFILE ] && exit
touch $LOCKFILE
xrandr --auto
rm $LOCKFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment