view bin/kcclient @ 343:fe9dff7dbffd

added C-l to launch subcomposer- in progress keyboardcomposer will probably launch subcomposer correctly, but i don't even know if KC blocks or not (untested), and the SC is certainly a child process of the KC, which is undesirable. We think that some sort of setpgrp call in the child may fix that.
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 19 Jun 2006 02:20:41 +0000
parents 54774cba50c9
children 179281f28d65
line wrap: on
line source

#!/usr/bin/env python

"""send KeyboardComposer a fade request, for use from the shell"""

import sys,xmlrpclib
import run_local
from light9 import networking

subname = sys.argv[1]
level = float(sys.argv[2])
fadesecs = 0
if len(sys.argv)>3:
    fadesecs = float(sys.argv[3])

levelserver = xmlrpclib.ServerProxy("http://%s:%s" %
                                    (networking.kcServer(),
                                     networking.kcPort()))

levelserver.fadesub(subname,level,fadesecs)