1
0
src/bin/transform

13 lines
276 B
Plaintext
Raw Normal View History

2022-05-18 15:44:50 -06:00
#!/bin/sh
argv0="$0"
usage(){
printf "Usage: %s (un) [XRandR output]\n" "$argv0" 1>&2
exit 64 # sysexits(3) EX_USAGE
}
if [ -n "$2" ] && [ "$1" = un ]
then xrandr --output "$2" --transform none
elif [ -n "$1" ]
then "$DISPLAYM_CONFIG/xrandr_transform.sh" "$1"
else usage
fi