bumblebee-status/bumblebee-status

26 lines
550 B
Text
Raw Normal View History

#!/usr/bin/env python
import sys
import bumblebee.engine
import bumblebee.config
import bumblebee.output
def main():
config = bumblebee.config.Config(sys.argv[1:])
output = bumblebee.output.I3BarOutput()
engine = bumblebee.engine.Engine(
config=config,
output=output,
)
engine.run()
if __name__ == "__main__":
try:
main()
except bumblebee.error.BaseError as error:
sys.stderr.write("fatal: {}\n".format(error))
sys.exit(1)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4