just install shortcutd from extras-devel, then go to settings and configure you can set portrait shortcut to camera button or proximity sensor