Merge pull request #31 from KPWhiver/all-workspaces-option

Add the "all workspaces" option to only show windows from the active workspace
This commit is contained in:
Piotr Miller
2021-03-05 22:49:49 +01:00
committed by GitHub
4 changed files with 31 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ SKELETON_PANEL: dict = {
"show-app-name": True,
"show-layout": True,
"workspace-buttons": True,
"all-workspaces": True,
"all-outputs": False
},
"sway-workspaces": {"numbers": ["1", "2", "3", "4", "5", "6", "7", "8"]},
@@ -763,6 +764,7 @@ class EditorWrapper(object):
"show-app-name": True,
"show-layout": True,
"workspace-buttons": True,
"all-workspaces": True,
"all-outputs": False
}
for key in defaults:
@@ -815,6 +817,9 @@ class EditorWrapper(object):
self.workspace_buttons = builder.get_object("workspace-buttons")
self.workspace_buttons.set_active(settings["workspace-buttons"])
self.ckb_all_workspaces = builder.get_object("all-workspaces")
self.ckb_all_workspaces.set_active(settings["all-workspaces"])
self.ckb_all_outputs = builder.get_object("all-outputs")
self.ckb_all_outputs.set_active(settings["all-outputs"])
@@ -861,6 +866,10 @@ class EditorWrapper(object):
if val is not None:
settings["workspace-buttons"] = val
val = self.ckb_all_workspaces.get_active()
if val is not None:
settings["all-workspaces"] = val
val = self.ckb_all_outputs.get_active()
if val is not None:
settings["all-outputs"] = val