How to flip your computer screen past a certain hour

Created: 5 Dec 2018 | Importance: 3/10

At some point I began doing unproductive things on the Internet in the evening, when I actually wanted to go to bed. After some search I made the following script, which inverts my screen after a certain hour. The problem has immediately disappeared.

The code is available on Github. Note that it is written for Linux.

The repository also contains scripts that can get the screen back to normal, for exceptional circumstances: you don't want to spend the last hours of writing your report with an inverted screen.