Last release introduced a bug, where if you had a monitor in your config that was not active, it would error out the script and prevent screenchanges
This commit is contained in:
@@ -31,7 +31,7 @@ class WorkSpacer:
|
||||
self.current_output_name = None
|
||||
|
||||
def _connect(self):
|
||||
self.print_if_debug('all available outputs on device')
|
||||
self.print_if_debug('All available outputs on device')
|
||||
self.print_if_debug(names_for_outputs)
|
||||
try:
|
||||
self.i3 = Connection()
|
||||
@@ -55,6 +55,8 @@ class WorkSpacer:
|
||||
for matchNum, match in enumerate(
|
||||
re.finditer(r'workspace (\$.*) output (\$.*)', self.config, re.MULTILINE)
|
||||
):
|
||||
if not config_outputs.keys().__contains__(match.group(2)):
|
||||
continue # Not an active display, skip it
|
||||
if not self.workspaces_on_outputs.keys().__contains__(config_outputs[match.group(2)]):
|
||||
self.workspaces_on_outputs[config_outputs[match.group(2)]] = []
|
||||
self.workspaces_on_outputs[config_outputs[match.group(2)]].append(
|
||||
|
||||
Reference in New Issue
Block a user