Skip to content

Instantly share code, notes, and snippets.

View kyrsideris's full-sized avatar
On the highway of data...

Kyriakos Sideris kyrsideris

On the highway of data...
View GitHub Profile
kyrsideris /
Last active August 29, 2015 14:17 — forked from Garland-g/
#Author: Travis Gibson
#This script requires an argument for the resolution width
#Thanks go out to eCharles for a patch in the comments of this link here:
#Get connected adapter
adapter=$(xrandr -q | grep "connected" | cut -d " " -f 1)
if [ -z "$adapter" ]; then
echo "Connected adapter not found. Check xrandr -q."
#Exit if no adapter is connected