// SPDX-License-Identifier: GPL-3.0-or-later // // The system settings, /etc/plasma-face-unlock/config. // // These are the ones that decide how hard it is to get in: which camera, how // strict the match is, whether a photo is checked for. They belong to root // for that reason. A setting a user process could change would be a setting // any program running as that user could lower before asking sudo for help. #pragma once #include enum class LivenessMode { Off, // Deny cues only: glare off a screen, the edge of a phone around the face. Light, // Deny cues, and a sign of life on top: a blink, or the nose moving like // a nose does when the head turns. Heavy, }; enum class Strictness { Relaxed, Normal, Strict, }; struct Settings { // A /dev/video path, "auto", or for testing "file: