Skip to content

Gsettings policy #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions BaseALT.admx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<category name="ALT_User_Restrictions_Mate" displayName="$(string.ALT_User_Restrictions_Mate)" explainText="$(string.ALT_User_Restrictions_Mate_Help)">
<parentCategory ref="ALT_Settings_Mate" />
</category>
<category name="ALT_Terminal_Mate" displayName="$(string.ALT_Terminal_Mate)" explainText="$(string.ALT_Terminal_Mate_Help)">
<parentCategory ref="ALT_Settings_Mate" />
</category>
<category name="ALT_Remote_Access_Vino_Gnome" displayName="$(string.ALT_Remote_Access_Vino_Gnome)" explainText="$(string.ALT_Remote_Access_Vino_Gnome_Help)">
<parentCategory ref="ALT_System" />
</category>
Expand Down
77 changes: 77 additions & 0 deletions BaseALTGsettings.admx
Original file line number Diff line number Diff line change
Expand Up @@ -2449,5 +2449,82 @@
</elements>
</policy>

<policy name="OrgMateSystemManagementShowTermimalUser" class="User"
displayName="$(string.org-mate-mate-menu-systemmanagement-show-terminal)"
explainText="$(string.org-mate-mate-menu-systemmanagement-show-terminal_help)"
key="Software\BaseALT\Policies\gsettings"
valueName="org.mate.mate-menu.system_management.show-terminal">
<parentCategory ref="system:ALT_Terminal_Mate" />
<supportedOn ref="system:SUPPORTED_AltP9" />
<enabledValue>
<decimal value="1" />
</enabledValue>
<disabledValue>
<decimal value="0" />
</disabledValue>
</policy>

<policy name="OrgMateSystemManagementShowTermimalMachine" class="Machine"
displayName="$(string.org-mate-mate-menu-systemmanagement-show-terminal)"
explainText="$(string.org-mate-mate-menu-systemmanagement-show-terminal_help)"
key="Software\BaseALT\Policies\gsettings"
presentation="$(presentation.OrgMateSystemManagementShowTermimalMachine-pr)">
<parentCategory ref="system:ALT_Terminal_Mate" />
<supportedOn ref="system:SUPPORTED_AltP9" />
<elements>
<enum id="OrgMateSystemManagementShowTermimal_setter" required="true" valueName="org.mate.mate-menu.system_management.show-terminal">
<item displayName="$(string.org-mate-mate-menu-systemmanagement-show-terminal-true)">
<value>
<decimal value="1" />
</value>
</item>
<item displayName="$(string.org-mate-mate-menu-systemmanagement-show-terminal-false)">
<value>
<decimal value="0" />
</value>
</item>
</enum>
<boolean id="OrgMateSystemManagementShowTermimal_blocker" key="Software\BaseALT\Policies\GSettingsLocks" valueName="org.mate.mate-menu.systemmanagement.show-terminal">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>

<policy name="OrgMateMarcoGlobalKeybindingsRunCommandTerminalUser" class="User"
displayName="$(string.org-mate-Marco-global-keybindings-run-command-terminal)"
explainText="$(string.org-mate-Marco-global-keybindings-run-command-terminal_help)"
presentation="$(presentation.OrgMateMarcoGlobalKeybindingsRunCommandTerminalUser-pr)"
key="Software\BaseALT\Policies\gsettings">
<parentCategory ref="system:ALT_Terminal_Mate" />
<supportedOn ref="system:SUPPORTED_AltP9" />
<elements>
<text id="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter" valueName="org.mate.Marco.global-keybindings.run-command-terminal" />
</elements>
</policy>

<policy name="OrgMateMarcoGlobalKeybindingsRunCommandTerminalMachine" class="Machine"
displayName="$(string.org-mate-Marco-global-keybindings-run-command-terminal)"
explainText="$(string.org-mate-Marco-global-keybindings-run-command-terminal_help)"
presentation="$(presentation.OrgMateMarcoGlobalKeybindingsRunCommandTerminalMachine-pr)"
key="Software\BaseALT\Policies\gsettings">
<parentCategory ref="system:ALT_Terminal_Mate" />
<supportedOn ref="system:SUPPORTED_AltP9" />
<elements>
<text id="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter" valueName="org.mate.Marco.global-keybindings.run-command-terminal" />
<boolean id="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_blocker" key="Software\BaseALT\Policies\GSettingsLocks" valueName="org.mate.Marco.global-keybindings.run-command-terminal">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
</policies>
</policyDefinitions>
2 changes: 2 additions & 0 deletions en-US/basealt.adml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
<string id="LinuxComponents_Help">Contains settings for Kernel components.</string>
<string id="ALT_Settings_Mate">Mate settings</string>
<string id="ALT_Settings_Mate_Help">Mate settings</string>
<string id= "ALT_Terminal_Mate">Mate Terminal</string>
<string id= "ALT_Terminal_Mate_Help">Mate terminal settings</string>
<string id="ALT_Background_Mate">Desktop background</string>
<string id="ALT_Background_Mate_Help">Desktop background settings</string>
<string id="ALT_Screensaver_Mate">Screensaver</string>
Expand Down
47 changes: 47 additions & 0 deletions en-US/basealtgsettings.adml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,33 @@ A string of type rgb(0,0,0).</string>

<string id="org-mate-peripherals-keyboard-rate">Repeat rate</string>
<string id="org-mate-peripherals-keyboard-rate_help">Sets the repeat rate of the pressed and held key.</string>

<string id="org-mate-mate-menu-systemmanagement-show-terminal">Displaying the terminal label</string>
<string id="org-mate-mate-menu-systemmanagement-show-terminal_help">This policy configures the display of the "Terminal" shortcut in the MATE menu.

If the policy value is set to "Enabled", then the "Terminal" shortcut will be displayed in the MATE system management menu. If the value is set to "Disabled", then the "Terminal" shortcut will be hidden.</string>

<string id="org-mate-mate-menu-systemmanagement-show-terminal-true">Enabled</string>
<string id="org-mate-mate-menu-systemmanagement-show-terminal-false">Disabled</string>

<string id="org-mate-Marco-global-keybindings-run-command-terminal">Hot keys to launch the terminal</string>
<string id="org-mate-Marco-global-keybindings-run-command-terminal_help">This policy allows you to set a hotkey combination for launching the Terminal application.

The key combination is passed as a string. The keyboard shortcut Ctrl+Alt+T will look like this: &lt;Primary&gt;&lt;Alt&gt;t

To disable the launch of the "Terminal" using hot keys, you must pass the value: false

There are several tokens used for various modifier keys in various desktop environments and software applications. Here are some of them:

&lt;Primary&gt; or &lt;Ctrl&gt;: Indicates the "Ctrl" (Control) key.
&lt;Alt&gt;: Indicates the "Alt" (Alternate) key.
&lt;Shift&gt;: Indicates the "Shift" key.
&lt;Super&gt; or &lt;Meta&gt;: Indicates a "Super" or "Meta" key. On most keyboards, this is the Windows or Command key.
&lt;Hyper&gt;: Indicates the "Hyper" key, which is not normally found on most keyboards.
&lt;CapsLock&gt;: Indicates the "Caps Lock" key.
false: Disable launching the terminal using hotkeys.

</string>
</stringTable>

<presentationTable>
Expand Down Expand Up @@ -759,6 +786,26 @@ last — repeat last action</text>
<text>Lock changes to this setting. User policies for this setting will be ignored.</text>
</presentation>

<presentation id="OrgMateSystemManagementShowTermimalMachine-pr">
<dropdownList noSort="true" defaultItem="0" refId="OrgMateSystemManagementShowTermimal_setter">Display label "Terminal":</dropdownList>
<checkBox refId="OrgMateSystemManagementShowTermimal_blocker">lock</checkBox>
<text>Lock changes to this setting. User policies for this setting will be ignored.</text>
</presentation>

<presentation id="OrgMateMarcoGlobalKeybindingsRunCommandTerminalMachine-pr">
<textBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter">
<label>Hot key combination:</label>
</textBox>
<checkBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_blocker">lock</checkBox>
<text>Lock changes to this setting. User policies for this setting will be ignored.</text>
</presentation>

<presentation id="OrgMateMarcoGlobalKeybindingsRunCommandTerminalUser-pr">
<textBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter">
<label>Hot key combination:</label>
</textBox>
</presentation>

</presentationTable>
</resources>
</policyDefinitionResources>
2 changes: 2 additions & 0 deletions ru-RU/basealt.adml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
<string id="LinuxComponents_Help">Содержит настройки ядра операционной системы.</string>
<string id="ALT_Settings_Mate">Настройки Mate</string>
<string id="ALT_Settings_Mate_Help">Настройки Mate</string>
<string id="ALT_Terminal_Mate">Терминал Mate</string>
<string id="ALT_Terminal_Mate_Help">Настройки Терминала Mate</string>
<string id="ALT_Background_Mate">Фон рабочего стола</string>
<string id="ALT_Background_Mate_Help">Настройки фона рабочего стола</string>
<string id="ALT_Screensaver_Mate">Хранитель экрана</string>
Expand Down
51 changes: 49 additions & 2 deletions ru-RU/basealtgsettings.adml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,33 @@ Cтрока типа rgb(0,0,0). </string>
<string id="org-mate-peripherals-keyboard-rate">Скорость повтора</string>
<string id="org-mate-peripherals-keyboard-rate_help">Устанавливает скорость повтора нажатой и удерживаемой клавиши.</string>

<string id="org-mate-mate-menu-systemmanagement-show-terminal">Отображение ярлыка "Терминал"</string>
<string id="org-mate-mate-menu-systemmanagement-show-terminal_help">Данная политика настраивает отображение ярлыка "Терминал" в MATE меню.

Если значение политики установлено в "Включено", то ярлык "Терминал" будет отображаться в меню системного управления MATE. Если значение установлено в "Отключено", то ярлык "Терминал" будет скрыт.</string>

<string id="org-mate-mate-menu-systemmanagement-show-terminal-true">Включено</string>
<string id="org-mate-mate-menu-systemmanagement-show-terminal-false">Отключено</string>

<string id="org-mate-Marco-global-keybindings-run-command-terminal">Горячие клавиши для запуска терминала</string>
<string id="org-mate-Marco-global-keybindings-run-command-terminal_help">Данная политика позволяет установить комбинацию горячих клавиш для запуска приложения "Терминал".

Комбинация клавиш передаётся в виде строки. Комбинация клавиш Ctrl+Alt+T будет выглядеть следующим образом: &lt;Primary&gt;&lt;Alt&gt;t

Для отключения запуска "Терминала" с помощью горячих клавиш необходимо передать значение false

Существует несколько токенов, используемых для различных клавиш-модификаторов в различных средах рабочего стола и программных приложениях. Вот некоторые из них:

&lt;Primary&gt; или &lt;Ctrl&gt;: Обозначает клавишу "Ctrl" (Control).
&lt;Alt&gt;: Обозначает клавишу "Alt" (Alternate).
&lt;Shift&gt;: Обозначает клавишу "Shift".
&lt;Super&gt; или &lt;Meta&gt;: Обозначает клавишу "Super" или "Meta". На большинстве клавиатур это клавиша Windows или Command.
&lt;Hyper&gt;: Обозначает клавишу "Hyper", которая обычно отсутствует на большинстве клавиатур.
&lt;CapsLock&gt;: Обозначает клавишу "Caps Lock".
false: Отключение запуска терминала с помощью "горячих" клавиш.

</string>

</stringTable>

<presentationTable>
Expand Down Expand Up @@ -616,7 +643,7 @@ Cтрока типа rgb(0,0,0). </string>
</presentation>

<presentation id="OrgGnomeVinoUseAlternativePortMachine-pr">
<dropdownList noSort="true" defaultItem="0" refId="OrgGnomeVinoUseAlternativePort_setter">Выберите «Включено» или «Отключено»:</dropdownList>
<dropdownList noSort="true" defaultItem="0" refId="OrgGnomeVinoUseAlternativePort_setter">Выберите «Включено» или «Отключено»:</dropdownList>
<checkBox refId="OrgGnomeVinoUseAlternativePort_setter_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки политикой пользователя. Блокировка политики делает её приоритетнее аналогичной политики для пользователя.</text>
</presentation>
Expand Down Expand Up @@ -645,7 +672,7 @@ Cтрока типа rgb(0,0,0). </string>
<text>Блокировка изменений данной настройки политикой пользователя. Блокировка политики делает её приоритетнее аналогичной политики для пользователя.</text>
</presentation>

<presentation id="OrgMateMarcoGeneraButtonLayoutUser-pr">
<presentation id="OrgMateMarcoGeneraButtonLayoutUser-pr">
<textBox refId="OrgMateMarcoGeneraButtonLayout_setter">
<label></label>
</textBox>
Expand Down Expand Up @@ -865,6 +892,26 @@ Cтрока типа rgb(0,0,0). </string>
<text>Блокировка изменений данной настройки политикой пользователя. Блокировка политики делает её приоритетнее аналогичной политики для пользователя.</text>
</presentation>

<presentation id="OrgMateSystemManagementShowTermimalMachine-pr">
<dropdownList noSort="true" defaultItem="0" refId="OrgMateSystemManagementShowTermimal_setter">Отображение ярлыка "Терминал":</dropdownList>
<checkBox refId="OrgMateSystemManagementShowTermimal_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки политикой пользователя. Блокировка политики делает её приоритетнее аналогичной политики для пользователя.</text>
</presentation>

<presentation id="OrgMateMarcoGlobalKeybindingsRunCommandTerminalMachine-pr">
<textBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter">
<label>Комбинация горячих клавиш:</label>
</textBox>
<checkBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки политикой пользователя. Блокировка политики делает её приоритетнее аналогичной политики для пользователя.</text>
</presentation>

<presentation id="OrgMateMarcoGlobalKeybindingsRunCommandTerminalUser-pr">
<textBox refId="OrgMateMarcoGlobalKeybindingsRunCommandTerminal_setter">
<label>Комбинация горячих клавиш:</label>
</textBox>
</presentation>

</presentationTable>
</resources>
</policyDefinitionResources>