4 ms·
Agreed! It's all about the workflows! The i3 API is really easy to hack on as well, which makes creating a specialized workflow really easy. I was working on a
by doix 6y ago
Agreed! It's all about the workflows! The i3 API is really easy to hack on as well, which makes creating a specialized workflow really easy. I was working on a project that was hosted on AWS + k8s and had 3 different enviorments: dev/uat/prod. I added a tiny script in my .zshrc that would check the workspace name on startup and automatically configure kubectl and a bunch of other things to match the workspace name. So every terminal I opened in that workspace was automatically configured for that enviorment.
That was fine for one project, but I had to maintain a fair few projects so I ended up having to create groups of workspaces. I used this patch: https://gist.github.com/woodensquares/c1afc4fb56b4d9d21fa261fb4b28b092 https://gist.github.com/woodensquares/c1afc4fb56b4d9d21fa261... that lets you hide workspaces from the bar if the ended with a prefix(I used _boop because I'm a child). So then all workspaces names become <group_num><ws_num>:<name>_boop apart from the active group, which is just <ws_num>:<name>. If you are in group 1 and switch to group 3, 1:dev would get renamed to 11:dev_boop and 31:name_boop would get renamed to 1:name and get automatically selected.
I also have a "scratch" workspace that is always visible regardless of group, I called it "i". Since it doesn't start with a number, it doesn't get affected by the workspace groups script and is always visible. I usually just stick irc there and my music player so I can access it regardless of which group/project I am working on.
I'm still waiting for this proposal to go through: https://github.com/i3/i3/issues/3818 https://github.com/i3/i3/issues/3818 so that I don't need to use a custom build of i3.
I hacked it all together in one afternoon and it's been working ever since. Before this I really struggled to context switch between all the different projects I was working on/supporting. This made it much more managable and got me a bunch of praise for how quickly I can fix problems/answer questions. I can't imagine trying to do my job without this setup anymore.