It automatically execute bash scripts when It detects that system screen has been locked or unlocked.
This script was written for Arch Linux and Manjaro.
As far as i know It should work flawlessly on any debian-based system.
Other Linux systems were not checked.
The main reason was to create a script that would enable automatic mining of cryptocurrencies when the computer was left unattended.