GNOME Terminal doesn't support custom key mappings like Kitty does. It cannot:
- Remap Shift+Enter, Ctrl+Enter, or Alt+Enter to send custom sequences
- Distinguish between Enter and Shift+Enter (terminal protocol limitation)
- Send arbitrary character sequences on key combinations
The patch already supports \+Enter for submission in any terminal, including GNOME Terminal.
You can create a system-wide shortcut that types the § character:
- Go to Settings → Keyboard → Keyboard Shortcuts
- Click "+" to add a custom shortcut
- Name: "Insert Section Sign"
- Command:
xdotool type '§' - Set shortcut: Alt+Enter (or your preference)
First install xdotool:
sudo apt install xdotoolsudo apt install xautomation
# Command: xte 'str §'Enable the compose key to type special characters:
- Settings → Keyboard → Compose Key → Choose a key (e.g., Right Alt)
- Type: Compose, s, o → § (section sign)
- Then press Enter to submit
Use the Ctrl+Shift+U method (works in most GTK applications):
- Press Ctrl+Shift+U
- Type: a7 (Unicode for §)
- Press Space or Enter
- Press Enter again to submit
Install AutoKey for more sophisticated remapping:
sudo apt install autokey-gtkCreate a script that sends § when Alt+Enter is pressed:
# AutoKey script
keyboard.send_keys("§")For GNOME Terminal users, we recommend:
- Primary method: Use
\+Enterfor submission (no setup required) - Alternative: Set up xdotool with a system keyboard shortcut
- Fallback: Use the compose key method
GNOME Terminal follows the VTE (Virtual Terminal Emulator) library standards strictly, which means:
- It sends standard ANSI escape sequences only
- It cannot intercept and modify key combinations at the terminal level
- All remapping must happen at the system (X11/Wayland) level
#!/bin/bash
# setup-gnome-terminal.sh
echo "Setting up Alt+Enter for GNOME Terminal..."
# Install xdotool
if ! command -v xdotool &> /dev/null; then
echo "Installing xdotool..."
sudo apt update
sudo apt install -y xdotool
fi
# Create the shortcut
echo "Creating keyboard shortcut..."
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'Claude Submit'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "xdotool type '§'"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding '<Alt>Return'
echo "Done! Alt+Enter will now insert § for Claude submission."
echo "Note: This is a system-wide shortcut and will work in all applications."