1
0

XRandR transformation

This commit is contained in:
dtb 2021-11-18 16:26:56 +00:00
parent 53ba39dd55
commit 49f8cbc6db

12
dotfiles-old/bin/transform Executable file
View File

@ -0,0 +1,12 @@
#!/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
done