Live data from Hacker News

Tmux for Mere Mortals

zserge.com

151–160 of 171 posts

Re: Tmux for Mere Mortals

#151

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

Necessity is the mother of invention. But I think you'll find that when you start writing something like that, you'll eventually learn enough about the config format that you'll no longer need a wizard to create the config for you. Then, it becomes hard to work on the wizard, because the necessity aspect is gone. Another question to ask is, who would pay for it? A lot of people buy services for things that they can d…

If you're not motivated by altruism, I can't teach it to you.

Re: Tmux for Mere Mortals

#152

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

This is exactly what you're referring to and it was really straight forward and clear. The project is a theme for zsh

https://github.com/romkatv/powerlevel10k#configuration-wizar...

Re: Tmux for Mere Mortals

#153
post #34

So I predominantly use Macs. The one and only reason why I personally use tmux is because of tmux -CC. I never bothered with screen/tmux simply because I didn't want to learn another whole new set of keybinds (let alone reconfigure them). tmux -CC largely behaves as a native app. Want a new tab? CMD+T. New window? CMD+N. Scrollback with the trackpad. That sort of thing. The complete system is iterm2 + tmux -CC + et (…

How did you set up ET for this? I couldn’t get it to work.

Re: Tmux for Mere Mortals

#155
I see he generically refers to "the mod key" but I don't see anything declaring what the mod key should be like you would in a tiling wm config, so I'm assuming the M- is the meta key in all these keybinds then. I wish that had been made more clear. I was pretty curious the whole time I read the article how he'd changed C-b to something else and what he'd picked. I had also briefly wondered if he'd somehow made things modal like vim so he could enter some sort of "tmux mode" where he could just press a key for an action and then return to his insert mode after. (also a bit like i3/sway's modes, the most common one being for resizing windows)

Re: Tmux for Mere Mortals

#156
post #37
post #18

Earlier quoted context omitted.

> realizing it was never going to work how I liked. > You can't have it all with the mouse no matter your settings > so I went back to just using the cursor to move things around. These tools (vim, tmux, etc.) work great for mouseless setups. If you can get comfortable with a 100% keyboard control paradigm, it might work for you. I realize this might not be what you want, but if the statement "spend less time moving…

My biggest problem with "mouseless tmux" was copy-paste. How do you deal with that?

Tmux runs in a terminal; use `[` and `]` for my tmux buffer; and the terminals OS Copy/Paste integration when i need to get things in/out. Reading these threads I didn't realize the heartburn they felt with tmux.

Re: Tmux for Mere Mortals

#157
post #116
post #14

Earlier quoted context omitted.

I've been using those for some time, before I met German keyboards with weird layouts. Now I try to stick to alphanumeric symbols only.

I was born in France, so grew up with one of the weirdest ISO layout: "AZERTY".[1] The worst offense is not even A-Z but rather symbols — take the key "ù" for instance: it's a non-mod key that is used for 1 single word in the entire French language. Literally, ONE WORD in the dictionary. And you need to Shift that 'ù' key to get '%'. How stupid is that... I won't even comment on the weird 'M' position, which shortens…

I wanted to chime in and revel in your company... Something similar (but never as bad as your painful description of AZERTY) happens with Spanish keyboards, and there are even varieties for different Latin American countries. As you mentioned, I finally found ever lasting peace when I switched to an ANSI-US keyboard, and never looked back. Thankfully my current employer defaults to these keyboards; it used to be a chore to provision them some years ago.

So, in short, I hear you brother!

Re: Tmux for Mere Mortals

#158
post #40

Earlier quoted context omitted.

Could not agree more. I throw in underscore and backslash for good measure too: bind-key | split-window -h bind-key \ split-window -h bind-key - split-window -v bind-key _ split-window -v

This is really helpful. I hadn't thought about adding bindings that work without shift. I just tried this and had to escape the slash to get the second binding to work: bind-key \\ split-window -h

Actually, it depends on your tmux version. Looks like

  bind-key '\' split-window -h
is more portable between versions.

Re: Tmux for Mere Mortals

#159
post #109

Earlier quoted context omitted.

Oh so many useful utilities to write. Folks often say "what should I do with my programming skills?" when there are endless tools, whos lack hold us back. My favorite would be a tool that wrote a Linux device tree source file, by digesting the board schematic. Port Linux to your new device with one click! Of course, that would take away a large part of my contracts. I'd have to do some real work for a change.

If you build it yourself you could easily continue those contracts with way less work put in. There's many, many jobs out there that exist only because people don't think they can read the documentation and figure out how to run things themselves. If the contracts start to dry up, offer it as an automated service. Look at how many people still pay to have someone install and configure things like Wordpress. There's l…

It would be a good product.

To work well the schematics would have to be well-formed, there need be a chip database of pinouts, clocks, enables and address strapping, and Linux would need a dts schema (its ad-hoc now). Lots of spadework I guess.

Re: Tmux for Mere Mortals

#160
post #157
post #116

Earlier quoted context omitted.

I was born in France, so grew up with one of the weirdest ISO layout: "AZERTY".[1] The worst offense is not even A-Z but rather symbols — take the key "ù" for instance: it's a non-mod key that is used for 1 single word in the entire French language. Literally, ONE WORD in the dictionary. And you need to Shift that 'ù' key to get '%'. How stupid is that... I won't even comment on the weird 'M' position, which shortens…

I wanted to chime in and revel in your company... Something similar (but never as bad as your painful description of AZERTY) happens with Spanish keyboards, and there are even varieties for different Latin American countries. As you mentioned, I finally found ever lasting peace when I switched to an ANSI-US keyboard, and never looked back. Thankfully my current employer defaults to these keyboards; it used to be a ch…

Thank you, so much, for this. Flawed-ISO-keybros!

Different kinds of layouts for spanish language is asinine. But hey, this reminds me, Quebec and France also have different layouts. Why keep it simple, when you can complicate everyone's life?

A toast to ANSI and your smart employer!

Post reply on HN