Widget itself can execute only one command. But you can write bash script and configure widget to launch the script. Widget shows part of the string, which matches the expression. This is how expressions are written: http://docs.python.org/library/re.html So it could be something like balance: [\d\.\,]*