translator
11,127
edits
(Add kde-inhibit) |
(Marked this version for translation) |
||
Line 48: | Line 48: | ||
====KCMs==== | ====KCMs==== <!--T:27--> | ||
<!--T:28--> | |||
Settings in Plasma are provided by KDE Configuration Modules (KCM). These are the various modules or sections of ''System Settings'', but it should be noted that some KCMs are hidden from ''System Settings''. All modules can be managed and launched via the utility ''kcmshell6''. | Settings in Plasma are provided by KDE Configuration Modules (KCM). These are the various modules or sections of ''System Settings'', but it should be noted that some KCMs are hidden from ''System Settings''. All modules can be managed and launched via the utility ''kcmshell6''. | ||
<!--T:29--> | |||
To list available KCMs: | To list available KCMs: | ||
{{UserCmd|command=kcmshell6 --list}} | {{UserCmd|command=kcmshell6 --list}} | ||
<!--T:30--> | |||
To run a particular module (replacing ''kcm_kded'' with the desired module): | To run a particular module (replacing ''kcm_kded'' with the desired module): | ||
{{UserCmd|command=kcmshell6 kcm_kded}} | {{UserCmd|command=kcmshell6 kcm_kded}} | ||
Line 65: | Line 68: | ||
====Power==== | ====Power==== <!--T:31--> | ||
=====Block Power Management===== | =====Block Power Management===== <!--T:32--> | ||
<!--T:33--> | |||
The Plasma Power widget can be used to manually inhibit Screen Locking and Sleep but the ''kde-inhibit'' command can be used to manually block specific features. The following example will use all of them to inhibit each feature for as long as trailing command is running (in this case ''spotify''). | The Plasma Power widget can be used to manually inhibit Screen Locking and Sleep but the ''kde-inhibit'' command can be used to manually block specific features. The following example will use all of them to inhibit each feature for as long as trailing command is running (in this case ''spotify''). | ||
<!--T:34--> | |||
{{UserCmd|command=kde-inhibit --power --screenSaver --nightLight --notifications spotify}} | {{UserCmd|command=kde-inhibit --power --screenSaver --nightLight --notifications spotify}} | ||
=====Disable Hibernate===== | =====Disable Hibernate===== <!--T:35--> | ||
<!--T:36--> | |||
Hibernation can be disabled and it's menu entries hidden with the drop-in file ''/etc/polkit-1/rules.d/99-disable-hibernate.rules''. | Hibernation can be disabled and it's menu entries hidden with the drop-in file ''/etc/polkit-1/rules.d/99-disable-hibernate.rules''. | ||
<!--T:37--> | |||
{{File|file=/etc/polkit-1/rules.d/99-disable-hibernate.rules|content= | {{File|file=/etc/polkit-1/rules.d/99-disable-hibernate.rules|content= | ||
<pre> | <pre> | ||
Line 93: | Line 100: | ||
}} | }} | ||
=====Disable Suspend===== | =====Disable Suspend===== <!--T:38--> | ||
<!--T:39--> | |||
Suspend can be disabled and it's menu entries hidden with the drop-in file ''/etc/polkit-1/rules.d/99-disable-suspend.rules''. | Suspend can be disabled and it's menu entries hidden with the drop-in file ''/etc/polkit-1/rules.d/99-disable-suspend.rules''. | ||
<!--T:40--> | |||
{{File|file=/etc/polkit-1/rules.d/99-disable-suspend.rules|content= | {{File|file=/etc/polkit-1/rules.d/99-disable-suspend.rules|content= | ||
<pre> | <pre> | ||
Line 113: | Line 122: | ||
}} | }} | ||
=====End Session Commands===== | =====End Session Commands===== <!--T:41--> | ||
<!--T:42--> | |||
Logging out or shutting down via a command can be useful whether for a non-graphical environment or inclusion in scripts. Whenever a plasma session is involved using the following commands should be preferred over more generic options such as ''systemctl reboot''. | Logging out or shutting down via a command can be useful whether for a non-graphical environment or inclusion in scripts. Whenever a plasma session is involved using the following commands should be preferred over more generic options such as ''systemctl reboot''. | ||
======Prompt====== | ======Prompt====== <!--T:43--> | ||
<!--T:44--> | |||
DBUS provides methods to open a prompt to end a session (logout, reboot, shutdown). | DBUS provides methods to open a prompt to end a session (logout, reboot, shutdown). | ||
<!--T:45--> | |||
{{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptLogout}} | {{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptLogout}} | ||
{{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptReboot}} | {{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptReboot}} | ||
Line 126: | Line 138: | ||
{{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptAll}} | {{UserCmd|command=qdbus6 org.kde.LogoutPrompt /LogoutPrompt promptAll}} | ||
======Immediate====== | ======Immediate====== <!--T:46--> | ||
<!--T:47--> | |||
Similar commands can be used to initiate the process without any prompt. | Similar commands can be used to initiate the process without any prompt. | ||
<!--T:48--> | |||
{{UserCmd|command=qdbus6 org.kde.Shutdown /Shutdown savesession}} | {{UserCmd|command=qdbus6 org.kde.Shutdown /Shutdown savesession}} | ||
{{UserCmd|command=qdbus6 org.kde.Shutdown /Shutdown logout}} | {{UserCmd|command=qdbus6 org.kde.Shutdown /Shutdown logout}} |