Ghostty + Zellij 👻 setup on Mac

So i have been using Ghostty with Zellij on macOS for a while, as my favourite goto terminal and workspace.

Problem

However, some things have been bothering me for a while that I couldn’t sort out until now:

The Option key on macOS wasn…


This content originally appeared on DEV Community and was authored by Cristobal Dabed

So i have been using Ghostty with Zellij on macOS for a while, as my favourite goto terminal and workspace.

Picture of Zellij Workspace in Ghostty Terminal on Mac

Problem

However, some things have been bothering me for a while that I couldn't sort out until now:

  1. The Option key on macOS wasn't being interpreted as Alt correctly in the terminal
  2. Jumping forward a word with Option+Right would trigger Zellij's floating pane toggle instead
  3. Reordering tabs with Alt+i and Alt+o did not work as expected

This happens because macOS terminals convert Option+Right to Alt+f (for "forward word" navigation), which conflicts with Zellij's Alt+f floating pane keybinding.

Solution

1. Configuring Ghostty to treat Option as Alt

Set the macos-option-as-alt option in your Ghostty config e.g.:

# Enable Option key as Alt for keybindings
# Use 'left' so right Option key can still type special characters
macos-option-as-alt = left

This lets us use the left Option key as Alt for Zellij keybindings, while the right Option key can still type special characters (',~, |, etc.).

2. Rebinding the floating pane shortcut

Since Option+Right still is interpreted as Alt+f by the terminal, we need to change Zellij's floating pane keybinding. This can be changed in your Zellij config e.g.:

bind "Alt Shift f" { ToggleFloatingPanes; }

Hope this helps you out, if you have been struggling with the same issues like i did 👋


This content originally appeared on DEV Community and was authored by Cristobal Dabed


Print Share Comment Cite Upload Translate Updates
APA

Cristobal Dabed | Sciencx (2025-11-09T18:40:23+00:00) Ghostty + Zellij 👻 setup on Mac. Retrieved from https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/

MLA
" » Ghostty + Zellij 👻 setup on Mac." Cristobal Dabed | Sciencx - Sunday November 9, 2025, https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/
HARVARD
Cristobal Dabed | Sciencx Sunday November 9, 2025 » Ghostty + Zellij 👻 setup on Mac., viewed ,<https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/>
VANCOUVER
Cristobal Dabed | Sciencx - » Ghostty + Zellij 👻 setup on Mac. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/
CHICAGO
" » Ghostty + Zellij 👻 setup on Mac." Cristobal Dabed | Sciencx - Accessed . https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/
IEEE
" » Ghostty + Zellij 👻 setup on Mac." Cristobal Dabed | Sciencx [Online]. Available: https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/. [Accessed: ]
rf:citation
» Ghostty + Zellij 👻 setup on Mac | Cristobal Dabed | Sciencx | https://www.scien.cx/2025/11/09/ghostty-zellij-%f0%9f%91%bb-setup-on-mac/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.