3 # © Copyright 2021-2022, Scott Gasch
5 """Utilities related to changing the orb's color."""
11 parser = config.add_commandline_args(
12 f"Orb Utils ({__file__})",
13 "Args having to do with controlling Scott's Orb.",
16 "--orb_utils_file_location",
17 default="/Users/scott/orb_color",
20 help="The location of the orb file on whatever machine is hosting it.",
23 "--orb_utils_user_machine",
25 metavar="USER@HOSTNAME",
27 help="The username/machine combo that is hosting the orb.",
31 def make_orb(color: str) -> None:
32 """Make the orb on my desk a particular color."""
33 user_machine = config.config['orb_utils_user_machine']
34 orbfile_path = config.config['orb_utils_file_location']
35 os.system(f"ssh {user_machine} 'echo \"{color}\" > {orbfile_path}'")