With KDE Connect, you can run predefined commands on your computer by pressing buttons on your phone!
Instructions on how to add a command are shown in userbase. A set of useful commands can also be found here.
Some sample commands, such as suspend and lock screen, are also available.