install shortcutd from extras-devel (here) install proximityd (here) go to settings and configure the app (it is at the bottom) you can set portrait shortcut to camera button or proximity sensor