@@ -11,7 +11,7 @@ if wezterm.config_builder then
1111end
1212
1313config .enable_tab_bar = false
14- config .color_scheme = " OneDark (base16) "
14+ config .color_scheme = " Catppuccin Mocha "
1515config .font = wezterm .font (" FiraCode Nerd Font" )
1616config .font_size = 15
1717
@@ -23,5 +23,69 @@ config.keys = {
2323 },
2424}
2525
26+ -- Window setting/ appearance
27+ -- config.window_decorations = "RESIZE"
28+
29+ config .window_padding = {
30+ left = " 1cell" ,
31+ right = " 1cell" ,
32+ top = " 0.0cell" ,
33+ bottom = " 0.5cell" ,
34+ }
35+
36+ config .initial_rows = 42
37+ config .initial_cols = 124
38+
39+ config .enable_scroll_bar = true
40+ config .scrollback_lines = 5000
41+ config .default_workspace = " main"
42+
43+ -- Dim inactive panes
44+ config .inactive_pane_hsb = {
45+ saturation = 0.24 ,
46+ brightness = 0.5 ,
47+ }
48+
49+ -- Tab bar
50+ config .enable_tab_bar = true
51+ config .use_fancy_tab_bar = false
52+ config .tab_bar_at_bottom = false
53+ config .status_update_interval = 1000
54+ wezterm .on (" update-status" , function (window , pane )
55+ local basename = function (s )
56+ return string.gsub (s , " (.*[/\\ ])(.*)" , " %2" )
57+ end
58+
59+ -- Current working directory
60+ local cwd = pane :get_current_working_dir ()
61+ if cwd then
62+ if type (cwd ) == " userdata" then
63+ cwd = basename (cwd .file_path )
64+ else
65+ cwd = basename (cwd )
66+ end
67+ else
68+ cwd = " "
69+ end
70+
71+ -- Current command
72+ local cmd = pane :get_foreground_process_name ()
73+ cmd = cmd and basename (cmd ) or " "
74+
75+ -- Time
76+ local time = wezterm .strftime (" %H:%M" )
77+
78+ -- Right status
79+ window :set_right_status (wezterm .format ({
80+ { Text = wezterm .nerdfonts .md_folder .. " " .. cwd },
81+ { Text = " | " },
82+ { Foreground = { Color = " #e0af68" } },
83+ { Text = wezterm .nerdfonts .fa_code .. " " .. cmd },
84+ " ResetAttributes" ,
85+ { Text = " | " },
86+ { Text = wezterm .nerdfonts .md_clock .. " " .. time },
87+ { Text = " " },
88+ }))
89+ end )
2690-- and finally, return the configuration to wezterm
2791return config
0 commit comments