A service for handling DPMS plug and unplug events
How to build the RPM package (requires curl, git, mock and rpm-build):
git clone https://github.com/felfert/handle_dpms.git
cd handle_dpms
rm -f *.src.rpm *.tar.gz
VER=$(git describe --abbrev=0 --tags)
curl -LOJ "https://github.com/felfert/handle_dpms/archive/refs/tags/${VER}.tar.gz?fn=handle_dkms-${VER}.tar.gz"
rpmbuild -D "_sourcedir ." -D "_srcrpmdir ." -bs packaging/rpm/*.spec
mock --rebuild *.src.rpm