diff options
author | zachir <zachir@librem.one> | 2023-02-21 13:08:20 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-21 13:08:20 -0600 |
commit | cb1ba09b2a36767afea74460947963542a04be53 (patch) | |
tree | 48939b7e1b144fd5decf56e72cc9ae1f1eb5db3d | |
parent | 5a472108f1451a3cb9b6e297feb57d19e4718069 (diff) |
update proj.py to also allow getting status
-rwxr-xr-x | proj.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -42,12 +42,16 @@ for i in range(1, args_len): pj.set_power(True) elif sys.argv[i] == "off": pj.set_power(False) + elif sys.argv[i] == "get": + print(pj.get_power()) else: print("Command not understood.") elif first_part == "mute": if sys.argv[i] == "on": - pj.set_power(True) + pj.set_mute(True) elif sys.argv[i] == "off": - pj.set_power(False) + pj.set_mute(False) + elif sys.argv[i] == "get": + print(pj.get_mute()) else: print("Command not understood.") |