Added screenlocker policy and fix typos

This commit is contained in:
Valentin Sokolov 2023-08-07 13:23:24 +04:00
parent fb91c06537
commit f1bdbf2012
3 changed files with 215 additions and 19 deletions

View File

@ -8,7 +8,7 @@
</policyNamespaces>
<resources minRequiredRevision="1.0" />
<policies>
<policy name="kde-win-activate" class="User" displayName="$(string.kde-win-activate)"
<policy name="kde-win-activate" class="User" displayName="$(string.kde-win-activate)"
explainText="$(string.kde-win-activate_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-win-activate-user-pr)">
@ -57,7 +57,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-win-rendering" class="User" displayName="$(string.kde-win-rendering)"
<policy name="kde-win-rendering" class="User" displayName="$(string.kde-win-rendering)"
explainText="$(string.kde-win-rendering_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-win-rendering-user-pr)">
@ -101,7 +101,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-language" class="User" displayName="$(string.kde-language)"
<policy name="kde-language" class="User" displayName="$(string.kde-language)"
explainText="$(string.kde-language_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-language-user-pr)">
@ -145,7 +145,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-desktops" class="User" displayName="$(string.kde-desktops)"
<policy name="kde-desktops" class="User" displayName="$(string.kde-desktops)"
explainText="$(string.kde-desktops_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-desktops-user-pr)">
@ -184,7 +184,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-automount" class="User" displayName="$(string.kde-automount)"
<policy name="kde-automount" class="User" displayName="$(string.kde-automount)"
explainText="$(string.kde-automount_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-automount-user-pr)">
@ -218,7 +218,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-filesearch" class="User" displayName="$(string.kde-filesearch)"
<policy name="kde-filesearch" class="User" displayName="$(string.kde-filesearch)"
explainText="$(string.kde-filesearch_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-filesearch-user-pr)">
@ -257,7 +257,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-iconstheme" class="User" displayName="$(string.kde-iconstheme)"
<policy name="kde-iconstheme" class="User" displayName="$(string.kde-iconstheme)"
explainText="$(string.kde-iconstheme_help)"
presentation="$(presentation.kde-iconstheme-user-pr)"
key="Software\BaseALT\Policies\KDE">
@ -301,7 +301,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-look-and-feel" class="User" displayName="$(string.kde-look-and-feel)"
<policy name="kde-look-and-feel" class="User" displayName="$(string.kde-look-and-feel)"
explainText="$(string.kde-look-and-feel_help)"
presentation="$(presentation.kde-look-and-feel-user-pr)"
key="Software\BaseALT\Policies\KDE">
@ -340,7 +340,91 @@
</boolean>
</elements>
</policy>
<policy name="kde-wallpaper" class="User" displayName="$(string.kde-wallpaper)"
<policy name="kde-screenlocker" class="User" displayName="$(string.kde-screenlocker)"
explainText="$(string.kde-screenlocker_help)"
key="Software\BaseALT\Policies\KDE"
presentation="$(presentation.kde-screenlocker-user-pr)">
<parentCategory ref="system:ALT_Settings_KDE" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="kde-autolock_setter" valueName="kscreenlockerrc.Autolock" required="true">
<item displayName="$(string.kde-autolock-enabled)">
<value>
<string>{"Daemon":{"Autolock":"true"}}</string>
</value>
</item>
<item displayName="$(string.kde-autolock-disabled)">
<value>
<string>{"Daemon":{"Autolock":"false"}}</string>
</value>
</item>
</enum>
<enum id="kde-lockonresume_setter" valueName="kscreenlockerrc.LockOnResume" required="true">
<item displayName="$(string.kde-lockonresume-enabled)">
<value>
<string>{"Daemon":{"LockOnResume":"true"}}</string>
</value>
</item>
<item displayName="$(string.kde-lockonresume-disabled)">
<value>
<string>{"Daemon":{"LockOnResume":"false"}}</string>
</value>
</item>
</enum>
<enum id="kde-screentimer_setter" valueName="kscreenlockerrc.Timer" required="true">
<item displayName="$(string.kde-screentimer-5)">
<value>
<string>{"Daemon":{"Timeout":"5"}}</string>
</value>
</item>
<item displayName="$(string.kde-screentimer-10)">
<value>
<string>{"Daemon":{"Timeout":"10"}}</string>
</value>
</item>
<item displayName="$(string.kde-screentimer-15)">
<value>
<string>{"Daemon":{"Timeout":"15"}}</string>
</value>
</item>
<item displayName="$(string.kde-screentimer-30)">
<value>
<string>{"Daemon":{"Timeout":"30"}}</string>
</value>
</item>
<item displayName="$(string.kde-screentimer-60)">
<value>
<string>{"Daemon":{"Timeout":"60"}}</string>
</value>
</item>
</enum>
<boolean id="kde-autolock_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="kscreenlockerrc.Autolock">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
<boolean id="kde-lockonresume_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="kscreenlockerrc.LockOnResume">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
<boolean id="kde-screentimer_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="kscreenlockerrc.Timer">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy name="kde-wallpaper" class="User" displayName="$(string.kde-wallpaper)"
explainText="$(string.kde-wallpaper_help)"
presentation="$(presentation.kde-wallpaper-user-pr)"
key="Software\BaseALT\Policies\KDE">
@ -350,7 +434,7 @@
<text id="kde-wallpaper-setter" valueName="plasma.wallpaperimage"/>
</elements>
</policy>
<policy name="kde-colorscheme" class="User" displayName="$(string.kde-colorscheme)"
<policy name="kde-colorscheme" class="User" displayName="$(string.kde-colorscheme)"
explainText="$(string.kde-colorscheme_help)"
presentation="$(presentation.kde-colorscheme-user-pr)"
key="Software\BaseALT\Policies\KDE">
@ -370,7 +454,7 @@
<text id="kde-cursortheme-setter" valueName="kdeglobals.Curcor"/>
</elements>
</policy>
<policy name="kde-graphic-effects" class="User" displayName="$(string.kde-graphic-effects)"
<policy name="kde-graphic-effects" class="User" displayName="$(string.kde-graphic-effects)"
explainText="$(string.kde-graphic-effects_help)"
presentation="$(presentation.kde-graphic-effects-user-pr)"
key="Software\BaseALT\Policies\KDE" valueName="kwinrc.GraphicEffects">
@ -393,7 +477,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-showdelete" class="User" displayName="$(string.kde-showdelete)"
<policy name="kde-showdelete" class="User" displayName="$(string.kde-showdelete)"
explainText="$(string.kde-showdelete_help)"
presentation="$(presentation.kde-showdelete-user-pr)"
key="Software\BaseALT\Policies\KDE" valueName="kdeglobals.Dolphin">
@ -416,7 +500,7 @@
</boolean>
</elements>
</policy>
<policy name="kde-singleclick" class="User" displayName="$(string.kde-singleclick)"
<policy name="kde-singleclick" class="User" displayName="$(string.kde-singleclick)"
explainText="$(string.kde-singleclick_help)"
presentation="$(presentation.kde-singleclick-user-pr)"
key="Software\BaseALT\Policies\KDE" valueName="kdeglobals.singleclick">

View File

@ -67,7 +67,7 @@
</string>
<string id="kde-filesearch">Служба поиска файлов</string>
<string id="kde-filesearch">File search service</string>
<string id="kde-filesearch_help">This policy allows you to configure the file search service, index the contents of files, index hidden files and folders. Possible setting options:
"Enable file search service only"
@ -77,6 +77,36 @@
"Enable search service and indexing of hidden files and folders"
"Enable search service, indexing hidden folders, files and their contents"
</string>
<string id="kde-screenlocker">Screen lock</string>
<string id="kde-screenlocker_help">This policy allows you to configure the screen lock when there is no activity for a certain time; after waking up from standby. Possible setting options:
Automatically lock the screen when there is no activity:
- Enabled;
- Turned off;
Automatically lock the screen after resuming from standby:
- Enabled;
- Turned off;
Automatically lock the screen when there is no activity for a certain time:
- 5 minutes;
- 10 minutes;
- 15 minutes;
- 30 minutes;
- 60 minutes.
</string>
<string id="kde-desktops">Virtual desktops</string>
@ -198,6 +228,18 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<string id="kde-look-and-feel-oxygen">Oxygen</string>
<string id="kde-look-and-feel-breezetwilight">BreezeTwilight</string>
<string id="kde-autolock-enabled">Enabled</string>
<string id="kde-autolock-disabled">Disabled</string>
<string id="kde-lockonresume-enabled">Enabled</string>
<string id="kde-lockonresume-disabled">Disabled</string>
<string id="kde-screentimer-5">5 minutes</string>
<string id="kde-screentimer-10">10 minutes</string>
<string id="kde-screentimer-15">15 minutes</string>
<string id="kde-screentimer-30">30 minutes</string>
<string id="kde-screentimer-60">60 minutes</string>
</stringTable>
<presentationTable>
<presentation id="kde-win-activate-user-pr">
@ -234,21 +276,27 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<textBox refId="kde-wallpaper-setter">
<label>File:</label>
</textBox>
<checkBox refId="kde-wallpaper_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-colorscheme-user-pr">
<textBox refId="kde-colorscheme-setter">
<label>Color scheme:</label>
</textBox>
<checkBox refId="kde-colorscheme_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-cursortheme-user-pr">
<textBox refId="kde-cursortheme-setter">
<label>Cursor theme:</label>
</textBox>
<checkBox refId="kde-cursortheme_blocker">Block</checkBox>
</presentation>
<presentation id="kde-graphic-effects-user-pr">
<checkBox refId="kde-graphic-effects_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-singleclick-user-pr">
<checkBox refId="kde-singleclick_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-showdelete-user-pr">
<checkBox refId="kde-showdelete_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-iconstheme-user-pr">
@ -261,6 +309,17 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<checkBox refId="kde-look-and-feel_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Automatically lock screen:</dropdownList>
<checkBox refId="kde-autolock_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
<dropdownList noSort="true" defaultItem="0" refId="kde-lockonresume_setter">Automatically lock the screen after resuming from standby:</dropdownList>
<checkBox refId="kde-lockonresume_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
<dropdownList noSort="true" defaultItem="0" refId="kde-screentimer_setter">Lock screen after:</dropdownList>
<checkBox refId="kde-screentimer_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
</presentationTable>
</resources>
</policyDefinitionResources>

View File

@ -77,6 +77,36 @@
«Включить службу поиска и индексацию скрытых файлов и папок»
«Включить службу поиска, индексацию скрытых папок, файлов и их содержимого»
</string>
<string id="kde-screenlocker">Блокировка экрана</string>
<string id="kde-screenlocker_help">Данная политика позволяет настраивать блокировку экрана при отсутствии активности в течении определённого времени; после выхода из ждущего режима. Возможные варианты настройки:
Автоматически блокировать экран при отсутствии активности:
- Включено;
- Выключено;
Автоматически блокировать экран после выхода из ждущего режима:
- Включено;
- Выключено;
Автоматически блокировать экран при отсутствии активности в течении определённого времени:
- 5 минут;
- 10 минут;
- 15 минут;
- 30 минут;
- 60 минут.
</string>
<string id="kde-desktops">Виртуальные рабочие столы</string>
@ -198,6 +228,18 @@
<string id="kde-look-and-feel-oxygen">Oxygen</string>
<string id="kde-look-and-feel-breezetwilight">BreezeTwilight</string>
<string id="kde-autolock-enabled">Включено</string>
<string id="kde-autolock-disabled">Отключено</string>
<string id="kde-lockonresume-enabled">Включено</string>
<string id="kde-lockonresume-disabled">Отключено</string>
<string id="kde-screentimer-5">5 минут</string>
<string id="kde-screentimer-10">10 минут</string>
<string id="kde-screentimer-15">15 минут</string>
<string id="kde-screentimer-30">30 минут</string>
<string id="kde-screentimer-60">60 минут</string>
</stringTable>
<presentationTable>
<presentation id="kde-win-activate-user-pr">
@ -267,6 +309,17 @@
<checkBox refId="kde-look-and-feel_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Автоматически блокировать экран:</dropdownList>
<checkBox refId="kde-autolock_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
<dropdownList noSort="true" defaultItem="0" refId="kde-lockonresume_setter">Автоматически блокировать экран после выхода из ждущего режима:</dropdownList>
<checkBox refId="kde-lockonresume_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
<dropdownList noSort="true" defaultItem="0" refId="kde-screentimer_setter">Блокировать экран через:</dropdownList>
<checkBox refId="kde-screentimer_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
</presentationTable>
</resources>
</policyDefinitionResources>