Skip to content

Instantly share code, notes, and snippets.

@dowodenum
Last active August 29, 2020 15:06
Show Gist options
  • Save dowodenum/2bfc9865a57c82fe45aad8ca5561382c to your computer and use it in GitHub Desktop.
Save dowodenum/2bfc9865a57c82fe45aad8ca5561382c to your computer and use it in GitHub Desktop.
create redshift.bat in the same folder as redshift, edited with location. Note -m wingdi, necessary for Windows (over randr)
redshift.bat contents:
.\redshift.exe -m wingdi -l LAT:LON
create redshift.vbs in the same folder as redshift.bat, this will make it run invisibly.
redshift.vbs contents:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & ".\redshift.bat" & Chr(34), 0
Set WshShell = Nothing
create a shortcut to this .vbs file and put it in Startup folder:
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\redshift.vbs - Shortcut.lnk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment