From d028d0ad381177c21755b8a579c7fb46235f181f Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Tue, 29 Apr 2025 13:16:02 +0300 Subject: [PATCH] fix(ghostty): terminal style --- config/eww/eww.scss | 2 +- config/git/config | 3 ++- local/bin/tmux-sessionizer | 16 ++++++++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/config/eww/eww.scss b/config/eww/eww.scss index ca8fc2e4..13bca0b1 100644 --- a/config/eww/eww.scss +++ b/config/eww/eww.scss @@ -17,7 +17,7 @@ $bg: rgba(25, 23, 37, 0.7); * { all: unset; - font-family: "JetBrainsMono NF"; + font-family: "JetBrainsMono Nerd Font"; font-size: 20; } diff --git a/config/git/config b/config/git/config index 5adcb271..7635f8c6 100644 --- a/config/git/config +++ b/config/git/config @@ -1,3 +1,4 @@ +#!config [user] email = dev@kristofers.xyz name = Kristofers Solo @@ -88,7 +89,7 @@ markEmptyLines = false [color "diff"] - meta = black bold + meta = white dim frag = magenta context = white whitespace = yellow reverse diff --git a/local/bin/tmux-sessionizer b/local/bin/tmux-sessionizer index 260078e7..b4ab04c9 100755 --- a/local/bin/tmux-sessionizer +++ b/local/bin/tmux-sessionizer @@ -14,12 +14,24 @@ selected_name=$(basename "$selected" | tr . _) tmux_running=$(pgrep tmux) if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then - tmux new-session -s "$selected_name" -c "$selected" + # Create new session with nvim in first window, detached + tmux new-session -ds "$selected_name" -c "$selected" "${EDITOR:-vim} ." + # Create second window as plain terminal + tmux new-window -t "$selected_name:" -c "$selected" + # Select the first window (index 0) + tmux select-window -t "$selected_name:1" + # Attach to the session + tmux attach-session -t "$selected_name" exit 0 fi if ! tmux has-session -t="$selected_name" 2>/dev/null; then - tmux new-session -ds "$selected_name" -c "$selected" + # Create new session with nvim in first window, detached + tmux new-session -ds "$selected_name" -c "$selected" "${EDITOR:-vim} ." + # Create second window as plain terminal + tmux new-window -t "$selected_name:" -c "$selected" + # Select the first window (index 0) + tmux select-window -t "$selected_name:1" fi tmux switch-client -t "$selected_name"