ofc, but you need to implement by yourself.
The shell script is /usr/bin/switchaction, you can modify it as you like.