Commit ebae5f7d3b59

Vincent Demeester <vincent@sbr.pm>
2026-03-17 11:17:18
feat: nerd font and lazyworktree config update
Switched font from plain JetBrains Mono to JetBrainsMono Nerd Font Mono across kitty, waybar, sway, mako, rofi, and raffi so Nerd Font icons render correctly everywhere. Updated lazyworktree config to v1.43 pane-scoped custom commands format, switched to splitted note storage, enabled switched sort mode, and added layout sizes.
1 parent 6bacdcd
Changed files (7)
dots
config
lazyworktree
raffi
home
dots/config/lazyworktree/config.yaml
@@ -8,7 +8,7 @@ max_name_length: 95
 merge_method: rebase
 refresh_interval: 10
 session_prefix: wt-
-sort_mode: path
+sort_mode: switched
 
 # Worktree lifecycle
 init_commands:
@@ -17,45 +17,61 @@ terminate_commands:
   - echo "Cleaning up $WORKTREE_NAME"
 
 # Branch naming
-branch_name_script: "aichat -m gemini:gemini-2.5-flash-lite 'Generate a short git branch name (no spaces, use hyphens) for this diff. Output only the branch name, nothing else.'"
+branch_name_script: |
+  if [ "$LAZYWORKTREE_TYPE" = "diff" ]; then
+    aichat -m gemini:gemini-2.5-flash-lite 'Generate a short git branch name (no spaces, use hyphens) for this diff. Output only the branch name, nothing else.'
+  else
+    aichat -m gemini:gemini-2.5-flash-lite 'Generate a short title (no issue-/pr- prefix, no spaces, use hyphens). Output only the title, nothing else.'
+  fi
 issue_branch_name_template: "{number}-{generated}"
 pr_branch_name_template: "pr-{number}-{generated}"
 
-# Worktree notes
+# Worktree notes — splitted markdown files for better sync and external tool access
 worktree_note_script: "aichat -m gemini:gemini-2.5-flash-lite 'Summarise this pr or ticket as concise implementation notes to make easy to know what is it about at glance'"
-worktree_notes_path: "~/.local/share/lazyworktree/worktree-notes.json"
+worktree_note_type: splitted
+worktree_notes_path: "~/.local/share/lazyworktree/notes/$REPO_NAME/$WORKTREE_NAME.md"
 
-# Commit screen
+# Commit screen (Ctrl+G to open, Ctrl+O to auto-generate)
 commit:
   auto_generate_command: 'aichat -m gemini:gemini-2.5-flash-lite "Write a concise conventional commit message for this staged diff. First line is the subject (max 50 chars), then a blank line, then a body explaining what and why."'
 
-# Custom commands
+# Layout sizes (relative weights)
+layout_sizes:
+  worktrees: 55
+  info: 30
+  git_status: 40
+  commit: 30
+  agent_sessions: 20
+  notes: 30
+
+# Custom commands (pane-scoped, v1.43+)
 custom_commands:
-  E:
-    command: pir
-    description: Pi (Vertex)
-    show_help: true
-  e:
-    command: pir
-    description: Pi tab (Vertex)
-    new_tab: true
-    show_help: true
-  t:
-    command: zsh
-    description: Shell tab
-    new_tab: true
-    show_help: true
-  _build:
-    command: make build
-    description: Build
-    show_output: true
-  _review:
-    command: make review
-    description: Review current worktree
-  _lint:
-    command: make lint
-    description: Run linter
-    show_output: true
+  universal:
+    E:
+      command: pir
+      description: Pi (Vertex)
+      show_help: true
+    e:
+      command: pir
+      description: Pi tab (Vertex)
+      new_tab: true
+      show_help: true
+    t:
+      command: zsh
+      description: Shell tab
+      new_tab: true
+      show_help: true
+    _build:
+      command: make build
+      description: Build
+      show_output: true
+    _review:
+      command: make review
+      description: Review current worktree
+    _lint:
+      command: make lint
+      description: Run linter
+      show_output: true
 
 # Custom worktree creation menus
 custom_create_menus:
@@ -77,6 +93,7 @@ custom_create_menus:
       ticket=$(git rev-parse --abbrev-ref HEAD|tr a-z A-Z |sed 's/\([Ss][Rr][Vv][Kk][Pp]-[0-9]*\)-.*/\1/')
       echo "https://issues.redhat.com/browse/${ticket}" > tmp/${ticket}.md
       jayrah cli view ${ticket} >> tmp/${ticket}.md
+
 theme: modus-operandi
 
 custom_themes:
dots/config/raffi/raffi.yaml
@@ -1,7 +1,7 @@
 general:
   ui_type: native
   theme: light
-  font_family: JetBrains Mono
+  font_family: JetBrainsMono Nerd Font Mono
   font_size: 16
   theme_colors:
     bg_base: '#ffffff'
home/common/desktop/niri/waybar.nix
@@ -120,7 +120,7 @@
     style = ''
       * {
         font-size: 16px;
-        font-family: "JetBrains Mono";
+        font-family: "JetBrainsMono Nerd Font Mono";
         border: none;
         border-radius: 0;
         min-height: 0px;
home/common/desktop/sway/default.nix
@@ -5,7 +5,7 @@ let
     fd . -d 3 --type d ~/src | ${pkgs.wofi}/bin/wofi -dmenu | xargs -I {} zsh -i -c "cd {}; emacs ."
   '';
   fontConf = {
-    names = [ "JetBrains Mono" ];
+    names = [ "JetBrainsMono Nerd Font Mono" ];
     size = 12.0;
   };
 in
home/common/desktop/sway/mako.nix
@@ -4,7 +4,7 @@ _: {
     settings = {
       default-timeout = 8000; # 5s timeout
       group-by = "app-name,summary";
-      font = "JetBrains Mono 12";
+      font = "JetBrainsMono Nerd Font Mono 12";
       width = 400;
       on-button-left = "dismiss";
       on-button-middle = "invoke-default-action";
home/common/desktop/sway/rofi.nix
@@ -10,7 +10,7 @@
     enable = true;
     settings = {
       main = {
-        font = "JetBrains Mono:size=12";
+        font = "JetBrainsMono Nerd Font Mono:size=12";
         dpi-aware = "auto";
       };
       colors = {
home/common/desktop/kitty.nix
@@ -5,7 +5,7 @@
     shellIntegration.enableZshIntegration = false; # handled in dots/config/zsh/tools/kitty.zsh
     settings = {
       close_on_child_death = "yes";
-      font_family = "JetBrains Mono";
+      font_family = "JetBrainsMono Nerd Font Mono";
       tab_bar_edge = "top";
       allow_remote_control = "socket-only";
       listen_on = "unix:/tmp/my-kitty";
@@ -20,7 +20,7 @@
       inactive_tab_background = "#0c0c0c";
     };
     font = {
-      name = "JetBrains Mono";
+      name = "JetBrainsMono Nerd Font Mono";
       size = 12;
     };
     keybindings = {