KDE Connect/Tutorials/Useful commands

From KDE UserBase Wiki
Revision as of 11:02, 23 July 2018 by Ognarb (talk | contribs) (List of useful commands for kde connect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:
    shutdown now
  • Suspend:
    systemctl suspend
  • lock screen:
    qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
  • Turn off screen:
    xset dpms force off
  • Turn on screen:
    xset dpms force on
  • Lock the keyboard and mouse (not the screen):
    pyxtrlock
  • Unlock input:
    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

  • Day theme:
    lookandfeeltool -a 'org.kde.breeze.desktop'
  • Night 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)