Translations:KDE Connect/Tutorials/Useful commands/4/en: Difference between revisions
Appearance
Importing a new version from external source |
Importing a new version from external source |
||
Line 5: | Line 5: | ||
* Lock screen: {{Output|1=<nowiki>loginctl lock-session</nowiki>}} | * Lock screen: {{Output|1=<nowiki>loginctl lock-session</nowiki>}} | ||
* Unlock screen: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}} | * Unlock screen: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}} | ||
* Turn off screen: {{Output|1=<nowiki> | * Turn off screen: {{Output|1=<nowiki>sleep 0.1 && qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut "Turn Off Screen"</nowiki>}} | ||
* Lock keyboard and mouse (not the screen): {{Output|1=<nowiki>pyxtrlock</nowiki>}} | * Lock keyboard and mouse (not the screen): {{Output|1=<nowiki>pyxtrlock</nowiki>}} | ||
* Unlock keyboard and mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}} | * Unlock keyboard and mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}} |
Revision as of 17:33, 31 May 2021
- Shutdown:
systemctl poweroff
- Reboot:
systemctl reboot
- Suspend:
systemctl suspend
- Hibernate:
systemctl hibernate
- Lock screen:
loginctl lock-session
- Unlock screen:
loginctl unlock-session
- Turn off screen:
sleep 0.1 && qdbus org.kde.kglobalaccel /component/org_kde_powerdevil invokeShortcut "Turn Off Screen"
- Lock keyboard and mouse (not the screen):
pyxtrlock
- Unlock keyboard and mouse:
pkill pyxtrlock