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
kyrsideris / Res.sh
Last active August 29, 2015 14:17 — forked from Garland-g/Res.sh
#!/bin/bash
#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: http://blog.echarles.net/2013/10/01/Ubuntu-13.04-On-MacbookPro-Retina
#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