Files @ fe9dff7dbffd
Branch filter:

Location: light9/bin/kcclient

Drew Perttula
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.
#!/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)