Skip to content

Instantly share code, notes, and snippets.

@voodoojello
Created January 26, 2019 21:31
Show Gist options
  • Save voodoojello/2c938c18a01c2cac9468722c49c09c54 to your computer and use it in GitHub Desktop.
Save voodoojello/2c938c18a01c2cac9468722c49c09c54 to your computer and use it in GitHub Desktop.
Variable resolution launcher for Sommelier
#!/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