check every return value in batch mode

This commit is contained in:
fdev31 2023-04-27 23:56:25 +02:00
parent ec09db0248
commit e2d996f1e0

View file

@ -43,7 +43,7 @@ async def hyprctl(command):
await ctl_writer.wait_closed() await ctl_writer.wait_closed()
if DEBUG: if DEBUG:
print("<<<", resp) print("<<<", resp)
return resp == b"ok" return resp == b"ok" * (len(resp) // 2)
async def get_focused_monitor_props(): async def get_focused_monitor_props():