by Isaac Lyons
Requires root privileges.
Changes the keyboard based on the OnePlus alert slider. The slider can be quickly flicked down but has to be slid up slowly for it to properly register.
The phone will be set to silent in both the up and down position. The middle, Do Not Disturb position in unaffected.