Your best bet would be to take a look at awesome-client. It's basically a shellscript wrapper around dbus-send, which can do just what you want.
--
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+
Gregor Best
pgpFBrNN3JfIR.pgp
Description: PGP signature
