This service is adding an icon for gnome to turn off your devices and go into tablet mode. Clone and replace values in fliplock.py:target function.
This service is not actively maintained and I've written it only for myself. Quality of code is not great, but I tried to keep it simple.