Skip to content
Closed
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-font-set
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ if [[ -n "$font_name" && "$font_name" != "CNCLD" ]]; then
pkill -SIGUSR2 ghostty
fi

if [[ -f ~/.config/wezterm/wezterm.lua ]]; then
sed -i "s/wezterm.font(\".*\")/wezterm.font(\"$font_name\")/g" ~/.config/wezterm/wezterm.lua
fi

sed -i "s/font_family = .*/font_family = $font_name/g" ~/.config/hypr/hyprlock.conf
sed -i "s/font-family: .*/font-family: '$font_name';/g" ~/.config/waybar/style.css
sed -i "s/font-family: .*/font-family: '$font_name';/g" ~/.config/swayosd/style.css
Expand Down
3 changes: 2 additions & 1 deletion bin/omarchy-install-terminal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if (($# == 0)); then
echo "Usage: omarchy-install-terminal [alacritty|ghostty|kitty]"
echo "Usage: omarchy-install-terminal [alacritty|ghostty|kitty|wezterm]"
exit 1
fi

Expand All @@ -12,6 +12,7 @@ case "$package" in
alacritty) desktop_id="Alacritty.desktop" ;;
ghostty) desktop_id="com.mitchellh.ghostty.desktop" ;;
kitty) desktop_id="kitty.desktop" ;;
wezterm) desktop_id="org.wezfurlong.wezterm.desktop" ;;
*)
echo "Unknown terminal: $package"
exit 1
Expand Down
8 changes: 7 additions & 1 deletion bin/omarchy-launch-screensaver
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
--override window_padding_width=0 \
-e omarchy-cmd-screensaver
;;
*wezterm*)
hyprctl dispatch exec -- \
wezterm --config-file ~/.local/share/omarchy/default/wezterm/screensaver.lua \
start --class org.omarchy.screensaver \
-- omarchy-cmd-screensaver
;;
*)
notify-send "✋ Screensaver only runs in Alacritty, Ghostty, or Kitty"
notify-send "✋ Screensaver only runs in Alacritty, Ghostty, Kitty, or WezTerm"
;;
esac
done
Expand Down
3 changes: 2 additions & 1 deletion bin/omarchy-menu
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,11 @@ show_install_editor_menu() {
}

show_install_terminal_menu() {
case $(menu "Install" " Alacritty\n Ghostty\n Kitty") in
case $(menu "Install" " Alacritty\n Ghostty\n Kitty\n WezTerm") in
*Alacritty*) install_terminal "alacritty" ;;
*Ghostty*) install_terminal "ghostty" ;;
*Kitty*) install_terminal "kitty" ;;
*WezTerm*) aur_install "wezterm-git" ;;
*) show_install_menu ;;
esac
}
Expand Down
4 changes: 4 additions & 0 deletions bin/omarchy-restart-terminal
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ fi
if pgrep -x ghostty; then
killall -SIGUSR2 ghostty
fi

if pgrep -x wezterm; then
killall -SIGUSR3 wezterm
fi
1 change: 1 addition & 0 deletions bin/omarchy-theme-set
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ omarchy-theme-set-browser
omarchy-theme-set-vscode
omarchy-theme-set-cursor
omarchy-theme-set-obsidian
omarchy-theme-set-wezterm

# Call hook on theme set
omarchy-hook theme-set "$THEME_NAME"
18 changes: 18 additions & 0 deletions bin/omarchy-theme-set-wezterm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

WEZTERM_THEME=~/.config/omarchy/current/theme/wezterm.lua

if omarchy-cmd-present wezterm; then
if [[ -f "$WEZTERM_THEME" ]]; then
# Ensure the wezterm config directory exists
mkdir -p ~/.config/wezterm

# Create or update the symlink from current theme to wezterm config
ln -snf "$WEZTERM_THEME" ~/.config/wezterm/theme.lua

# Reload wezterm instances if any are running
if pgrep -x wezterm >/dev/null; then
killall -SIGUSR3 wezterm
fi
fi
fi
40 changes: 40 additions & 0 deletions config/wezterm/bindings.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
local wezterm = require("wezterm")
local act = wezterm.action
local bindings = {}

function bindings.apply_to_config(config)
config.keys = {
{
key = "T",
mods = "CTRL|SHIFT",
action = act.SpawnTab("DefaultDomain"),
},
{
key = "L",
mods = "CTRL|SHIFT",
action = act.ActivateTabRelative(1),
},
{
key = "H",
mods = "CTRL|SHIFT",
action = act.ActivateTabRelative(-1),
},
{
key = "K",
mods = "CTRL|SHIFT",
action = act.MoveTabRelative(1),
},
{
key = "J",
mods = "CTRL|SHIFT",
action = act.MoveTabRelative(-1),
},
{
key = "W",
mods = "CTRL|SHIFT",
action = act.CloseCurrentTab({ confirm = true }),
},
}
end

return bindings
28 changes: 28 additions & 0 deletions config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
local wezterm = require("wezterm")
local bindings = require("bindings")
local theme = require("theme")
local config = wezterm.config_builder()

-- Edit keybinds in ~/.config/wezterm/bindings.lua
bindings.apply_to_config(config)

-- Theme to be updated by theme switcher
theme.apply_to_config(config)

-- Font
config.font = wezterm.font("JetBrains Mono")
config.font_size = 9

-- Window
config.window_close_confirmation = "NeverPrompt"
config.window_decorations = "NONE"
config.window_padding = {
left = 14,
right = 14,
top = 14,
bottom = 14,
}
config.hide_tab_bar_if_only_one_tab = true
config.use_fancy_tab_bar = false

return config
23 changes: 23 additions & 0 deletions default/wezterm/screensaver.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
local wezterm = require("wezterm")
local config = wezterm.config_builder()

-- Font
config.font_size = 18

-- Window
config.window_close_confirmation = "NeverPrompt"
config.window_decorations = "NONE"
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.colors = {
background = "black",
cursor_bg = "black",
}
config.window_background_opacity = 1.0
config.enable_tab_bar = false

return config
3 changes: 3 additions & 0 deletions install/config/theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current
mkdir -p ~/.config/mako
ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config

mkdir -p ~/.config/wezterm
ln -snf ~/.config/omarchy/current/theme/wezterm.lua ~/.config/wezterm/theme.lua

# Add managed policy directories for Chromium and Brave for theme changes
sudo mkdir -p /etc/chromium/policies/managed
sudo chmod a+rw /etc/chromium/policies/managed
Expand Down
8 changes: 8 additions & 0 deletions themes/catppuccin-latte/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Catppuccin Latte Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "Catppuccin Latte (Gogh)"
end

return theme
8 changes: 8 additions & 0 deletions themes/catppuccin/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Catppuccin Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "Catppuccin Mocha (Gogh)"
end

return theme
40 changes: 40 additions & 0 deletions themes/ethereal/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-- Ethereal Theme
local theme = {}

function theme.apply_to_config(config)
config.colors({
-- Background & Foreground
foreground = "#ffcead",
background = "#060B1E",

-- Standard colors
ansi = {
"#060B1E",
"#ED5B5A",
"#92a593",
"#E9BB4F",
"#7d82d9",
"#c89dc1",
"#a3bfd1",
"#F99957",
},

-- Bright colors
brights = {
"#6d7db6",
"#faaaa9",
"#c4cfc4",
"#f7dc9c",
"#c2c4f0",
"#ead7e7",
"#dfeaf0",
"#ffcead",
},

-- Cursor colors
cursor_bg = "#ffcead",
cursor_fg = "#060B1E",
})
end

return theme
8 changes: 8 additions & 0 deletions themes/everforest/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Everforest Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "Everforest Dark Hard (Gogh)"
end

return theme
8 changes: 8 additions & 0 deletions themes/flexoki-light/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Flexoki-Light Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "flexoki-light"
end

return theme
8 changes: 8 additions & 0 deletions themes/gruvbox/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Gruvbox Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "Gruvbox Dark (Gogh)"
end

return theme
40 changes: 40 additions & 0 deletions themes/hackerman/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-- Hackerman Theme
local theme = {}

function theme.apply_to_config(config)
config.colors({
-- Background & Foreground
foreground = "#ddf7ff",
background = "#0B0C16",

-- Standard colors
ansi = {
"#0B0C16",
"#50f872",
"#4fe88f",
"#50f7d4",
"#829dd4",
"#86a7df",
"#7cf8f7",
"#85E1FB",
},

-- Bright colors
brights = {
"#6a6e95",
"#85ff9d",
"#9cf7c2",
"#a4ffec",
"#c4d2ed",
"#cddbf4",
"#d1fffe",
"#ddf7ff",
},

-- Cursor colors
cursor_bg = "#ddf7ff",
cursor_fg = "#0B0C16",
})
end

return theme
8 changes: 8 additions & 0 deletions themes/kanagawa/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Kanagawa Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "kanagawabones"
end

return theme
44 changes: 44 additions & 0 deletions themes/matte-black/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
-- Matte-Black Theme
local theme = {}

function theme.apply_to_config(config)
config.colors({
-- Background & Foreground
foreground = "#bebebe",
background = "#121212",

-- Standard colors
ansi = {
"#333333",
"#D35F5F",
"#FFC107",
"#b91c1c",
"#e68e0d",
"#D35F5F",
"#bebebe",
"#bebebe",
},

-- Bright colors
brights = {
"#8a8a8d",
"#B91C1C",
"#FFC107",
"#b90a0a",
"#f59e0b",
"#B91C1C",
"#eaeaea",
"#ffffff",
},

-- Cursor colors
cursor_bg = "#eaeaea",
cursor_fg = "#121212",

-- Selection colors
selection_fg = "#bebebe",
selection_bg = "#333333",
})
end

return theme
8 changes: 8 additions & 0 deletions themes/nord/wezterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Nord Theme
local theme = {}

function theme.apply_to_config(config)
config.color_scheme = "Nord (Gogh)"
end

return theme
Loading