Skip to content

Instantly share code, notes, and snippets.

View betapictoris's full-sized avatar

Daniel Hall betapictoris

View GitHub Profile
@betapictoris
betapictoris / setResolution.sh
Created November 19, 2024 18:23
Script to set the resolution to input
## setResolution.sh - 2024-11-19
##
## Example:
## bash ./setResolution.sh 1410 940
##
# Get the string for the mode
mode="$(cvt $1 $2 | sed -n '2,2p' | sed 's/Modeline //g')"
name="$(echo $mode | grep -o "^\".*\"")"