diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index 1012634..780a227 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -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 }}" diff --git a/ansible/roles/common/templates/kitty.conf.j2 b/ansible/roles/common/templates/kitty.conf.j2 new file mode 100644 index 0000000..4e5eb0a --- /dev/null +++ b/ansible/roles/common/templates/kitty.conf.j2 @@ -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 diff --git a/docs/hyprland-keybindings.md b/docs/hyprland-keybindings.md index dd74e03..deadcb7 100644 --- a/docs/hyprland-keybindings.md +++ b/docs/hyprland-keybindings.md @@ -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.