Skip to content

Instantly share code, notes, and snippets.

@woodRock
Last active September 10, 2019 10:09
Show Gist options
  • Save woodRock/0c32565edb66c4dd7812aea25ac54556 to your computer and use it in GitHub Desktop.
Save woodRock/0c32565edb66c4dd7812aea25ac54556 to your computer and use it in GitHub Desktop.
Bash script to dim Redshift to a set temperature on Linux
  1. Write the dim file to the bin (you will need super user permissions)
sudo nano /usr/bin/dim
  1. Copy and paste the following code into the file
TEMP=1900
redshift -P -O $TEMP
  1. To run this script it will you will need to change the permissions.
sudo chmod +X /usr/bin/dim
  1. The script should now be able to be run with the following line,
dim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment