forked from Blendman974/faceclaw
Add a lock screen, controlled by wear-detection
This commit is contained in:
1 parent
4302a506d4
commit
960e2fd6e1
10 files changed
+429
-22
No files matched your search
@@ -255,6 +255,15 @@ export const screenTimeoutSetting = new ConfigSettingEnum<ScreenTimeoutSetting>(
|
||||
description: "How long the display stays on after the last input before turning itself off. \"Never\" keeps it on until turned off manually.",
|
||||
});
|
||||
|
||||
export const lockScreenEnabledSetting = new ConfigSettingBoolean({
|
||||
id: "lock-screen-enabled",
|
||||
label: "Enable lock screen",
|
||||
storageKey: "display.lockScreenEnabled",
|
||||
defaultValue: true,
|
||||
description:
|
||||
"Lock the glasses after they are taken off while the phone is locked. Unlocking the phone unlocks the glasses.",
|
||||
});
|
||||
|
||||
export type VerticalPosition = "top" | "upper" | "middle" | "lower" | "bottom";
|
||||
|
||||
const VERTICAL_POSITION_LABELS: Record<VerticalPosition, string> = {
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
openAiApiKeySetting,
|
||||
enumSettingMenuItem,
|
||||
firmwareDebugFlagsSetting,
|
||||
lockScreenEnabledSetting,
|
||||
saveVoiceRecordingsSetting,
|
||||
suspendEvenHubWhenScreenOffSetting,
|
||||
terminalAuthTokenSetting,
|
||||
@@ -58,6 +59,7 @@ function settingsSections(): SettingsSection[] {
|
||||
shell.noteUserActivity();
|
||||
},
|
||||
}),
|
||||
toggleSettingMenuItem(lockScreenEnabledSetting),
|
||||
// Where min-height windows (and the sidebar) sit vertically on the
|
||||
// screen; the dashboard controller repositions surfaces on change.
|
||||
enumSettingMenuItem(verticalPositionSetting),
|
||||
|
||||
Reference in new issue
Block a user