This is a guide for people who want to preserve the hardware buttons for an eternity.Tools:
Xposed Framework + GravityBox [JB][KK] (Root required)On my home-screen I have two invisible shortcuts created using Desktop VisualizeR.
Auto Screen On
(Lower Left corner) - Power Menu: (I prefer Reboot Menu - more customizable (no confirm action))
Add Widget > Desktop VisualizeR > Icon > Others > None(Lower Right corner) - Screen Off:
Launch > Select Action > Launch Application > Reboot Menu
Add Widget > Desktop VisualizeR > Icon > Others > NoneVolume Control*: (Assigned to double tap on the 'Home' softkey)
Launch > Select Action > Other > GravityBox Actions > Go to sleep
GravityBox settings > Hardware keys action > Set custom app 1 > Applications > Volume Control*Volume Widget presents seperated control bars for Media, Ringer, and Alarm. There is also a GravityBox Action for volume control which is a single control bar.
GravityBox settings > Hardware keys action > Home Key (Double-tap action) > Launch custom app 1
Wake: (I prefer Auto Screen On (Gravity Screen works also))
Auto Screen On settings > Choose Sensor > proximity sensor**TIP**: If handset has shutdown completely, it can be turned on by connecting to USB power source.
Auto Screen On settings > Screen-Off Timeout > never stop
Wave hand over phone or hold to face/ear to wake.