-
-
Save voodoojello/2c938c18a01c2cac9468722c49c09c54 to your computer and use it in GitHub Desktop.
Variable resolution launcher for Sommelier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
#---------------------------------------------------------- | |
# Variable resolution launcher for Sommelier | |
#---------------------------------------------------------- | |
# | |
if [ "$1" == "" ]; then | |
echo "Usage: res [0-9] [app] [args], exiting..." | |
elif [ "$1" -gt 9 ]; then | |
echo "Scale should be 0-9, exiting..." | |
elif [ "$2" == "" ]; then | |
echo "Nothing to do, exiting..." | |
else | |
echo " >> Launching: sommelier -X --scale=0.$1 --dpi=160 ${@:2}" | |
sommelier -X --scale=0.$1 --dpi=160 ${@:2} >/dev/null 2>&1 & | |
fi | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment