Speaking about the several ways that a Linux system offers to users to create custom automation, there is a software technology that hides under the hoods of modern desktop environments, D-Bus. To make parallelism, in the same way we use piping |
the output from a shell command to the input of another, we might altogether find interesting to get some info from an application running on our DE, no matter if it is a GUI application or an application running in the background, and use it in our scripts.
#xargs
A command that converts the standard input into arguments used by another command to call