2016-12-04 08:37:01 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
2016-12-08 11:31:20 +01:00
|
|
|
import bumblebee.theme
|
2016-12-04 08:37:01 +01:00
|
|
|
import bumblebee.engine
|
|
|
|
import bumblebee.config
|
2016-12-04 16:14:43 +01:00
|
|
|
import bumblebee.output
|
2016-12-09 19:29:16 +01:00
|
|
|
import bumblebee.input
|
2016-12-04 08:37:01 +01:00
|
|
|
|
|
|
|
def main():
|
|
|
|
config = bumblebee.config.Config(sys.argv[1:])
|
2016-12-08 11:31:20 +01:00
|
|
|
theme = bumblebee.theme.Theme(config.theme())
|
|
|
|
output = bumblebee.output.I3BarOutput(theme=theme)
|
2016-12-09 19:29:16 +01:00
|
|
|
inp = bumblebee.input.I3BarInput()
|
2016-12-04 08:37:01 +01:00
|
|
|
engine = bumblebee.engine.Engine(
|
2016-12-04 16:14:43 +01:00
|
|
|
config=config,
|
|
|
|
output=output,
|
2016-12-09 19:29:16 +01:00
|
|
|
inp=inp,
|
2016-12-04 08:37:01 +01:00
|
|
|
)
|
|
|
|
|
2016-12-10 08:09:13 +01:00
|
|
|
engine.run()
|
|
|
|
# try:
|
|
|
|
# except KeyboardInterrupt as error:
|
|
|
|
# inp.stop()
|
|
|
|
# sys.exit(0)
|
|
|
|
# except bumblebee.error.BaseError as error:
|
|
|
|
# inp.stop()
|
|
|
|
# sys.stderr.write("fatal: {}\n".format(error))
|
|
|
|
# sys.exit(1)
|
|
|
|
# except Exception as error:
|
|
|
|
# inp.stop()
|
|
|
|
# sys.stderr.write("fatal: {}\n".format(error))
|
|
|
|
# sys.exit(2)
|
2016-12-09 19:29:16 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|
2016-12-04 08:37:01 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|