Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/omarchy-restart-terminal
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ fi
if pgrep -x ghostty >/dev/null; then
killall -SIGUSR2 ghostty
fi

if [[ -f ~/.config/wezterm/wezterm.lua ]]; then
touch ~/.config/wezterm/wezterm.lua
fi
22 changes: 22 additions & 0 deletions config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local wezterm = require 'wezterm'
local config = wezterm.config_builder()

config.font = wezterm.font('JetBrainsMono Nerd Font')
config.font_size = 9
config.window_padding = { left = 14, right = 14, top = 14, bottom = 14 }
config.window_decorations = 'NONE'
config.audible_bell = 'Disabled'

-- Use the retro tab bar so the Omarchy theme's tab_bar colors fully apply
config.enable_tab_bar = true
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true

-- Dynamic Omarchy theme colors (regenerated on every `omarchy theme set`)
local theme = wezterm.home_dir .. '/.config/omarchy/current/theme/wezterm.lua'
local ok, colors = pcall(dofile, theme)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take a look at the configs for alacritty, foot, and kitty and see if they use something other than dofile

if ok and colors then
config.colors = colors
end

return config
40 changes: 40 additions & 0 deletions default/themed/wezterm.lua.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
return {
foreground = "{{ foreground }}",
background = "{{ background }}",
cursor_bg = "{{ cursor }}",
cursor_border = "{{ cursor }}",
cursor_fg = "{{ background }}",
selection_fg = "{{ selection_foreground }}",
selection_bg = "{{ selection_background }}",
ansi = {
"{{ color0 }}", "{{ color1 }}", "{{ color2 }}", "{{ color3 }}",
"{{ color4 }}", "{{ color5 }}", "{{ color6 }}", "{{ color7 }}",
},
brights = {
"{{ color8 }}", "{{ color9 }}", "{{ color10 }}", "{{ color11 }}",
"{{ color12 }}", "{{ color13 }}", "{{ color14 }}", "{{ color15 }}",
},
tab_bar = {
background = "{{ background }}",
active_tab = {
bg_color = "{{ accent }}",
fg_color = "{{ background }}",
},
inactive_tab = {
bg_color = "{{ background }}",
fg_color = "{{ foreground }}",
},
inactive_tab_hover = {
bg_color = "{{ color0 }}",
fg_color = "{{ foreground }}",
},
new_tab = {
bg_color = "{{ background }}",
fg_color = "{{ foreground }}",
},
new_tab_hover = {
bg_color = "{{ color0 }}",
fg_color = "{{ foreground }}",
},
},
}