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