Skip to content

Instantly share code, notes, and snippets.

@krlmlr
Created August 27, 2013 15:27
Show Gist options
  • Save krlmlr/6355074 to your computer and use it in GitHub Desktop.
Save krlmlr/6355074 to your computer and use it in GitHub Desktop.
export DISPLAY=:$(( $( (echo 0; ls /tmp/.X11-unix/X* 2> /dev/null) | sed 's/^.*\/X//' | sort | tail -n 1) + 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment