Created
September 14, 2013 11:28
-
-
Save hrj/6561271 to your computer and use it in GitHub Desktop.
Script to add red tint to the entire screen.
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 | |
# Call with a percentage value from 0 to 100 | |
# 0 means only red, 50 means half of green and blue is shown through | |
# if you don't give any arguments the calibration is cleared | |
if [[ -z "$1" ]]; then | |
echo Clearing all calibrations | |
xcalib -clear | |
else | |
FILTER=$1 | |
echo Setting FILTER to $FILTER | |
xcalib -clear && xcalib -green 1 1 $FILTER -blue 1 1 $FILTER -alter | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment