Tile Split Tile Split Tile (rants)

I love tilling window managers,it split my display in halves.
I love tmux, it splits my terminal in halves
and I love vim, it splits my workspace in halves

The cursed

+-----------------------------------------------------------------------------+
|       |  vim split: main                |                                   |
|       |                                 |                                   |
| split |                                 |                                   |
|       |                                 |                                   |
| files |   > My lovely code              |                                   |
| tags  |                                 |                                   |
| lists |   int super_safe(char* str)     |                                   |
|       |   {                             |                                   |
|       |       gets(str);                |                                   |
|       |   }                             |        Browser                    |
|       |                                 |                                   |
|       |2                                | 5                                 |
|       +---------------------------------+-----------------------------------+
|       |                                 |                                   |
|       |                                 |                                   |
|       |  vim split: quick fix list      |        Anime girls                |
|       |                                 |                                   |
|1      |3                                |                                   |
+-------+---------------------------------+                                   |
|         Terminal Split : shell prompt   |                                   |
|                                         |                                   |
|4                                        | 6                                 |
+-----------------------------------------------------------------------------+

Now my biggest headache is how to navigate through the panes! The problem is that each level (wm/tmux/editor) has its own modifier key (and keybindings). Currently I use Mod (win) key for window manager, Alt (or prefix Alt-W) for tmux and Ctrl (or prefix Ctrl-W) for vim. That is, to switch from 5 to 2 I need:

(PRESS Mod-H)
(IF in 4) (PRESS Alt-K) (ENDIF)
(IF in 1) (PRESS Ctr-L) (ENDIF)
(IF in 3) (PRESS Ctr-W) (ENDIF)

You constantly need to eyeball the cursor and DO A MAPPING IN YOUR HEAD: which fucking container am I in?

To make things even worse, each container has its own “workspaces”:

  • WM has workspaces
  • Tmux has sessions and windows
  • Vim has tabs and buffers


A real-world example of the …

real-world

Hey, why do you use tmux when you have WM?

Well, when I work locally I avoid using tmux. But when I’m working on a server (I often do!), I have to use tmux because I don’t want to start multiple ssh sessions, and most importantly the workspaces SHOULD NOT be attached to a ssh session because if the network break or I accidentally kill the terminal the remote programs will be killed and the works will be lost.

Remedy…? just a wild idea.

Maybe we can have a plugin for.. say wlroots, to also identify tmux panes and vim splits and put them in WM’s window tree, so that we can navigate with only one set of keybindings..

Oct 14, 2023


[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
  anonymous
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.

>> SEND COMMENT <<




Sharesnip via Rosano March 6, 2023

Free QR code generator and scanner.

Nikon F3/T via Corvid Cafe February 23, 2023

It's so pretty...

2022 year review via ellugar Logs January 9, 2023

>

Generated by openring from webring