KDE Connect/Tutorials/Useful commands: Difference between revisions
(List of useful commands for kde connect) |
m (Changed wording, changed lock/unlock and shutdown commands) |
||
Line 9: | Line 9: | ||
==Control your computer state== | ==Control your computer state== | ||
* Shutdown: {{Output|1=<nowiki> | * Shutdown: {{Output|1=<nowiki>systemctl poweroff</nowiki>}} | ||
* Suspend: {{Output|1=<nowiki>systemctl suspend</nowiki>}} | * Suspend: {{Output|1=<nowiki>systemctl suspend</nowiki>}} | ||
* lock screen: {{Output|1=<nowiki> | * Lock screen: {{Output|1=<nowiki>loginctl lock-session</nowiki>}} | ||
* Unlock screen: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}} | |||
* Turn off screen: {{Output|1=<nowiki>xset dpms force off</nowiki>}} | * Turn off screen: {{Output|1=<nowiki>xset dpms force off</nowiki>}} | ||
* Turn on screen: {{Output|1=<nowiki>xset dpms force on</nowiki>}} | * Turn on screen: {{Output|1=<nowiki>xset dpms force on</nowiki>}} | ||
* Lock | * Lock keyboard and mouse (not the screen): {{Output|1=<nowiki>pyxtrlock</nowiki>}} | ||
* Unlock | * Unlock keyboard and mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}} | ||
==Volume control== | ==Volume control== | ||
* | * Volume down: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}} | ||
* | * Volume up: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"</nowiki>}} | ||
==Change look and feel== | ==Change look and feel== | ||
* | * Breeze (Light) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breeze.desktop'</nowiki>}} | ||
* | * Breeze (Dark) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breezedark.desktop'</nowiki>}} | ||
==Brightness settings== | ==Brightness settings== |
Revision as of 11:09, 23 July 2018
Under Construction
This is a new page, currently under construction!
List of example commands for kde connect
In Kde connect, you can add your own commands and execute then from your phone. Here are some useful command.
Control your computer state
- Shutdown:
systemctl poweroff
- Suspend:
systemctl suspend
- Lock screen:
loginctl lock-session
- Unlock screen:
loginctl unlock-session
- Turn off screen:
xset dpms force off
- Turn on screen:
xset dpms force on
- Lock keyboard and mouse (not the screen):
pyxtrlock
- Unlock keyboard and mouse:
pkill pyxtrlock
Volume control
- Volume down:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
- Volume up:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
Change look and feel
- Breeze (Light) theme:
lookandfeeltool -a 'org.kde.breeze.desktop'
- Breeze (Dark) theme:
lookandfeeltool -a 'org.kde.breezedark.desktop'
Brightness settings
- Brightness Up:
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 375)
- Brightness Down:
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid.PowerManagement.Actions.BrightnessControl.brightness) + 375)