From efa25334fb0ff29a7a6975c72ed2382f195a575f Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Wed, 5 Oct 2022 13:37:15 -0600 Subject: [PATCH] feat: Add option to only show open windows on the current workspace --- i18n/en/pop_desktop_widget.ftl | 1 + src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/i18n/en/pop_desktop_widget.ftl b/i18n/en/pop_desktop_widget.ftl index 1291788..fbfc686 100644 --- a/i18n/en/pop_desktop_widget.ftl +++ b/i18n/en/pop_desktop_widget.ftl @@ -29,6 +29,7 @@ dock-extend = Extend dock to the edges of the screen dock-extends = Dock extends to edges dock-intelligently-hide = Intelligently hide dock-intelligently-hide-description = Dock hides when any window overlaps the dock area +dock-isolate-workspaces = Only show windows on the current workspace dock-launcher = Show Launcher Icon in Dock dock-mounted-drives = Show Mounted Drives dock-options = Dock Options diff --git a/src/lib.rs b/src/lib.rs index a83a9e0..fb60361 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -501,6 +501,9 @@ fn dock_options(container: &C) { settings.set_string("click-action", map_click_action_selection(click_action_selection)).unwrap(); })); }; + + let switch = switch_row(&list_box, &fl!("dock-isolate-workspaces")); + settings.bind("isolate-workspaces", &switch, "active").build(); } }