Add kitty window title bar with hostname/cwd display

- New Ansible template for kitty.conf with window_title_bar
- Title bar shows: hostname | cwd | title on every tile
- Document title bar feature in keybindings cheatsheet
This commit is contained in:
ja
2026-05-28 10:43:40 +02:00
parent 3c7bf3bd73
commit cb9b8474bb
3 changed files with 49 additions and 0 deletions
+20
View File
@@ -1,4 +1,24 @@
---
- name: Ensure kitty config directory exists
file:
path: "{{ ansible_env.HOME }}/.config/kitty"
state: directory
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: '0755'
tags: [kitty, terminal]
- name: Deploy kitty configuration
template:
src: kitty.conf.j2
dest: "{{ ansible_env.HOME }}/.config/kitty/kitty.conf"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: '0644'
vars:
kitty_config_dir: "{{ ansible_env.HOME }}/.config/kitty"
tags: [kitty, terminal]
- name: Check current swap file size
stat:
path: "{{ swap_file_path }}"
@@ -0,0 +1,17 @@
# Managed by Ansible - saTway DevOps
shell bash
editor vim
# Shell integration is enabled by default in kitty 0.24.0+
# but we can explicitly enable it for clarity.
shell_integration enabled
# Ensure cursor keys work correctly by not overriding TERM in shell
# (Handled via .bashrc fix)
# Window title bar — show hostname + cwd on every tile
window_title_bar top
window_title_bar_min_windows 1
window_title_template "{hostname} | {cwd} | {title}"
include {{ kitty_config_dir }}/kitty-cline-keybindings.conf
+12
View File
@@ -89,6 +89,18 @@
| 2 | DVI-D-1 (BenQ BL2405) | Center, 1920x1080@60 rotated 90deg |
| 3 | HDMI-A-1 (TERRA 3280W) | Right, 2560x1440@60 |
## Kitty Title Bar
Every kitty terminal tile shows a title bar with:
| Field | Description |
|-------|-------------|
| `{hostname}` | Machine hostname |
| `{cwd}` | Current working directory |
| `{title}` | Process/window title |
**Config:** `window_title_bar top` + `window_title_bar_min_windows 1` (kitty 0.46.2)
## Notes
- `SUPER+CTRL+K` (keybind menu) does **not work** — the `sed` pipeline breaks. Needs fix.