summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-21 13:08:20 -0600
committerzachir <zachir@librem.one>2023-02-21 13:08:20 -0600
commitcb1ba09b2a36767afea74460947963542a04be53 (patch)
tree48939b7e1b144fd5decf56e72cc9ae1f1eb5db3d
parent5a472108f1451a3cb9b6e297feb57d19e4718069 (diff)
update proj.py to also allow getting status
-rwxr-xr-xproj.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/proj.py b/proj.py
index 3b61160..a85b38c 100755
--- a/proj.py
+++ b/proj.py
@@ -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.")