survive missing 'monitor' key
This commit is contained in:
@@ -250,7 +250,8 @@ def list_outputs(sway=False, tree=None, silent=False):
|
|||||||
outputs_dict[item.name] = {"x": item.rect.x,
|
outputs_dict[item.name] = {"x": item.rect.x,
|
||||||
"y": item.rect.y,
|
"y": item.rect.y,
|
||||||
"width": item.rect.width,
|
"width": item.rect.width,
|
||||||
"height": item.rect.height}
|
"height": item.rect.height,
|
||||||
|
"monitor": None}
|
||||||
elif os.getenv('WAYLAND_DISPLAY') is not None:
|
elif os.getenv('WAYLAND_DISPLAY') is not None:
|
||||||
if not silent:
|
if not silent:
|
||||||
print("Running on Wayland, but not sway")
|
print("Running on Wayland, but not sway")
|
||||||
@@ -279,14 +280,16 @@ def list_outputs(sway=False, tree=None, silent=False):
|
|||||||
'y': y,
|
'y': y,
|
||||||
'width': w,
|
'width': w,
|
||||||
'height': h,
|
'height': h,
|
||||||
'transform': transform}
|
'transform': transform,
|
||||||
|
'monitor': None}
|
||||||
else:
|
else:
|
||||||
outputs_dict[name] = {'name': name,
|
outputs_dict[name] = {'name': name,
|
||||||
'x': x,
|
'x': x,
|
||||||
'y': y,
|
'y': y,
|
||||||
'width': h,
|
'width': h,
|
||||||
'height': w,
|
'height': w,
|
||||||
'transform': transform}
|
'transform': transform,
|
||||||
|
'monitor': None}
|
||||||
else:
|
else:
|
||||||
print("'wlr-randr' command not found, terminating")
|
print("'wlr-randr' command not found, terminating")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user