The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Static workspaces

asked 2013-06-27 19:36:10 +0000

LowEndGeek gravatar image

Is there a way to use static workspaces? Like if I wanted to have X number of workspaces that are always visable regardless if a client is on it or not?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-27 21:06:43 +0000

Apparently, this functionality is something which has been discussed quite often and has been rejected. I presume the following might work though:

diff --git a/src/workspace.c b/src/workspace.c
index 17f5ac3..64ec8c3 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -443,7 +443,7 @@ static void _workspace_show(Con *workspace) {
         con_focus(next);

     ipc_send_workspace_focus_event(workspace, current);
-
+#if 0
     DLOG("old = %p / %s\n", old, (old ? old->name : "(null)"));
     /* Close old workspace if necessary. This must be done *after* doing
      * urgency handling, because tree_close() will do a con_focus() on the next
@@ -458,7 +458,7 @@ static void _workspace_show(Con *workspace) {
             ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
         }
     }
-
+#endif
     workspace->fullscreen_mode = CF_OUTPUT;
     LOG("focused now = %p / %s\n", focused, focused->name);
edit flag offensive delete link more

Comments

I'll give it a shot, if it doesn't work its no big deal.

LowEndGeek gravatar imageLowEndGeek ( 2013-06-28 04:06:35 +0000 )edit

Question Tools

Stats

Asked: 2013-06-27 19:36:10 +0000

Seen: 488 times

Last updated: Jun 27 '13