How I use cmd+k as my tmux prefix               [ Home ](https://davidharting.com) [ Notes ](https://davidharting.com/notes) [ Media Log ](https://davidharting.com/media) [ Pages ](https://davidharting.com/pages)  [ Login ](https://davidharting.com/login)

  2024 December 27

How I use cmd+k as my tmux prefix
=================================

 Cmd + k on mac uses a thumb and a home row key. Comfortable for me!

  - I use the default ctrl + b prefix in [my tmux config](https://github.com/davidharting/dotfiles/blob/1daf90dc291d798b211de49873a5ec72e6e5aa66/tmux/tmux.conf)
- I configure my terminal emulator to map cmd + k to send ctrl + b to the terminal

In Alacritty it's [like this](https://github.com/davidharting/dotfiles/blob/1daf90dc291d798b211de49873a5ec72e6e5aa66/alacritty/.config/alacritty/alacritty.toml#L16):

```
[keyboard]
bindings = [
	{key= "k", mods= "Command", chars= "\u0002"}
]

```

I set up with Ghostty today with this config:

```
keybind = cmd+k=text:\x02

```

If your pinky hurts, try this out!

  [ Back to all notes ](https://davidharting.com/notes)
