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:
@@ -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
|
||||
Reference in New Issue
Block a user