diff --git a/woman/main_functions.py b/woman/main_functions.py
index 6c38e8b5229ec9df6ef6c27e98bb028e3d54820f..c291b604f405a5430f1772e051d61c4d175c037d 100644
--- a/woman/main_functions.py
+++ b/woman/main_functions.py
@@ -111,6 +111,14 @@ def mf_goto_workspace(params):
     n_master, n_slave = params_workspace(params)
     goto_workspace(n_master, n_slave)
 
+@main_function(["swap-with-workspace", "s"], std_parser, "Swap current workspace with specified workspace.")
+def mf_swap_with_workspace(params):
+    n_master, n_slave = params_workspace(params)
+    current = shared.workspace_on[shared.output]
+    print(current)
+    if current != (None, None) and current != GUI_WORKSPACE:
+        swap_workspace(n_master, n_slave, *current)
+
 @main_function(["gui"], [], "Show grafic user interface (only if you start daemon with `-g` option).")
 def mf_gui(params):
     if shared.workspace_on[shared.output] == GUI_WORKSPACE: