diff --git a/nwg_panel/config.py b/nwg_panel/config.py
index 42e4d4f6..7e5646c7 100644
--- a/nwg_panel/config.py
+++ b/nwg_panel/config.py
@@ -64,6 +64,7 @@
"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 @@ def edit_sway_taskbar(self, *args):
"show-app-name": True,
"show-layout": True,
"workspace-buttons": True,
+ "all-workspaces": True,
"all-outputs": False
}
for key in defaults:
@@ -815,6 +817,9 @@ def edit_sway_taskbar(self, *args):
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 @@ def update_sway_taskbar(self):
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
diff --git a/nwg_panel/config/config b/nwg_panel/config/config
index eb620ea5..67ee1713 100644
--- a/nwg_panel/config/config
+++ b/nwg_panel/config/config
@@ -90,6 +90,7 @@
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
+ "all-workspaces": true,
"all-outputs": true
},
"sway-workspaces": {
@@ -206,6 +207,7 @@
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
+ "all-workspaces": true,
"all-outputs": false
},
"sway-workspaces": {
diff --git a/nwg_panel/glade/config_sway_taskbar.glade b/nwg_panel/glade/config_sway_taskbar.glade
index c931be84..d6c037be 100644
--- a/nwg_panel/glade/config_sway_taskbar.glade
+++ b/nwg_panel/glade/config_sway_taskbar.glade
@@ -21,6 +21,19 @@
8
+
+
+
+ 1
+ 8
+
+