Skip to content

Commit

Permalink
update for wezterm
Browse files Browse the repository at this point in the history
Signed-off-by: ayamir <[email protected]>
  • Loading branch information
ayamir committed Sep 2, 2023
1 parent 352c036 commit 1776431
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 58 deletions.
12 changes: 0 additions & 12 deletions catppuccin/.config/wezterm/colors/Catppuccin.toml

This file was deleted.

101 changes: 55 additions & 46 deletions catppuccin/.config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local wezterm = require("wezterm")
local c = wezterm.config_builder()
local mykeys = {
{
key = "t",
Expand All @@ -13,8 +14,9 @@ local mykeys = {
{ key = "=", mods = "CTRL", action = "IncreaseFontSize" },
{ key = "-", mods = "CTRL", action = "DecreaseFontSize" },
{ key = "0", mods = "CTRL", action = "ResetFontSize" },
{ key = "C", mods = "CTRL|SHIFT", action = "Copy" },
{ key = "V", mods = "CTRL|SHIFT", action = "Paste" },
{ key = "C", mods = "CTRL", action = wezterm.action.CopyTo("ClipboardAndPrimarySelection") },
{ key = "V", mods = "CTRL", action = wezterm.action.PasteFrom("Clipboard") },
{ key = "V", mods = "CTRL", action = wezterm.action.PasteFrom("PrimarySelection") },
{ key = "Z", mods = "CTRL", action = "TogglePaneZoomState" },
{
key = "J",
Expand All @@ -37,50 +39,57 @@ for i = 1, 8 do
})
end

return {
use_ime = true,
default_prog = { "/usr/bin/fish", "-l" },
font = wezterm.font_with_fallback({
"Sarasa Mono SC Nerd",
"JetBrainsMono Nerd Font",
"Consolas NF",
"FiraCode Nerd Font",
"CamingoCode Nerd Font",
"Hack Nerd Font",
"PlexCodePro Nerd Font Mono",
"CodeNewRoman Nerd Font",
"Operator Mono Lig",
}),
front_end = "OpenGL",
font_size = 14,
color_scheme = "Catppuccin",
enable_tab_bar = true,
tab_max_width = 20,
tab_bar_at_bottom = true,
hide_tab_bar_if_only_one_tab = true,
text_background_opacity = 1.0,
disable_default_key_bindings = true,
mouse_bindings = {
{
wezterm.plugin.require("https://github.com/nekowinston/wezterm-bar").apply_to_config(c)

event = { Up = { streak = 1, button = "Left" } },
mods = "NONE",
action = wezterm.action({
CompleteSelectionOrOpenLinkAtMouseCursor = "Clipboard",
}),
},
{
event = { Up = { streak = 1, button = "Left" } },
mods = "CTRL",
action = "OpenLinkAtMouseCursor",
},
c.use_ime = true
c.default_prog = { "/bin/zsh", "-l" }
c.window_decorations = "RESIZE"
c.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
c.font = wezterm.font_with_fallback({
"JetBrainsMono Nerd Font",
"Sarasa Mono SC Nerd",
"Consolas NF",
"FiraCode Nerd Font",
"CamingoCode Nerd Font",
"Hack Nerd Font",
"PlexCodePro Nerd Font Mono",
"CodeNewRoman Nerd Font",
"Operator Mono Lig",
})
c.adjust_window_size_when_changing_font_size = false
c.audible_bell = "Disabled"
c.clean_exit_codes = { 130 }
c.default_cursor_style = "BlinkingBar"
c.command_palette_font_size = 13.0
c.window_frame = { font_size = 13.0 }
c.window_background_opacity = 0.95
c.front_end = "OpenGL"
c.font_size = 13
c.mouse_bindings = {
{

event = { Up = { streak = 1, button = "Left" } },
mods = "NONE",
action = wezterm.action({
CompleteSelectionOrOpenLinkAtMouseCursor = "Clipboard",
}),
},
{
event = { Up = { streak = 1, button = "Left" } },
mods = "CTRL",
action = "OpenLinkAtMouseCursor",
},
keys = mykeys,
window_background_opacity = 1.0,
-- window_background_image = "/home/ayamir/Pictures/wezterm/nord.jpg",
-- window_background_image_hsb = {
-- brightness = 2.0,
-- hue = 1.0,
-- saturation = 1.0
-- }
}
c.keys = mykeys

wezterm.plugin.require("https://github.com/catppuccin/wezterm").apply_to_config(c, {
sync = false,
sync_flavors = { light = "latte", dark = "mocha" },
})

return c

0 comments on commit 1776431

Please sign in to comment.