With this project, each time I turn my phone face down (screen on), it will :
- remember it's previous sound mode (vibrate, sound, silence)
- set the silence mode
- do a very small vibration to indicate that it is done !
When I turn it back (or at the first screen-on if it was in standby), the previous mode is restaured. To indicate the new sound mode, the phone will vibrate or bip, according to the new status
(Only Tasker needed)
To install it : download the xml. On Tasker : long press on the bottom bar (the house for example), then "Import" and choose the xml file.