def get_description(arg_string): description = system.get_output_of("dig +short txt " + arg_string + ".wp.dg.cx" ) #TODO clean this info up first return description
def get(): cmd = "amixer get Master | grep 'Mono:' | sed -e 's/^[^\[]*//' -e 's/^.//' -e 's/%.*$//'" out = system.get_output_of(cmd) vol = int(out) return vol