Switch from kitty to Wezterm

This commit is contained in:
askiiart 2024-08-16 11:18:15 -05:00
parent 6088e82ff9
commit 69a5cf92af
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
6 changed files with 68 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
**/fishd.tmp*
vscode/argv.json
fish/completions/wezterm.fish
fish/fish_variables

View file

@ -103,3 +103,6 @@ if command_exists "xbps-install"; then
cp /usr/bin/sway-runner $GIT_DIR/
sudo chown $(whoami) sway-runner
fi
# Wezterm
cp ~/.wezterm.lua $GIT_DIR/wezterm.lua

View file

@ -20,6 +20,9 @@ alias pls="please"
if [ $TERM = "xterm-kitty" ]
alias icat="kitten icat"
alias s="kitten ssh"
else
alias icat="wezterm imgcat"
alias s="ssh"
end
# NixOS

View file

@ -113,6 +113,8 @@ done
# WezTerm
wezterm shell-completion --shell fish > ~/.config/fish/completions/wezterm.fish
cp $GIT_DIR/wezterm.lua ~/.wezterm.lua
gsettings set org.cinnamon.desktop.default-applications.terminal exec wezterm-gui
# VS code
mkdir -p $HOME/.config/Code/User/

View file

@ -14,7 +14,7 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term kitty
set $term wezterm-gui
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.

57
wezterm.lua Normal file
View file

@ -0,0 +1,57 @@
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
----- actual config -----
config.font = wezterm.font('FiraCode Nerd Font')
config.font_size = 11.0
-- enable scrollbar
config.enable_scroll_bar = true
-- clone of my catppuccin mocha kitty theme (not the same as the default catppuccin mocha color scheme
config.color_scheme = 'Catppuccin Mocha'
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0
}
config.colors = {
foreground = '#CAD3F5',
background = '#24273A',
cursor_fg = '#24273A',
cursor_bg = '#F4DBD6',
cursor_border = '#F4DBD6',
selection_fg = '#24273A',
selection_bg = '#F4DBD6',
scrollbar_thumb = '#F4DBD6',
split = '#1E1E2E',
ansi = {
'#494D64', -- black
'#ED8796', -- red
'#A6DA95', -- green
'#EED49F', -- yellow
'#8AADF4', -- blue
'#F5BDE6', -- magenta
'#8BD5CA', -- cyan
'#B8C0E0' -- white
},
brights = {
'#5B6078', -- black
'#ED8796', -- red
'#A6DA95', -- green
'#EED49F', -- yellow
'#8AADF4', -- blue
'#F5BDE6', -- magenta
'#8BD5CA', -- cyan
'#A5ADCB' -- white
}
}
config.default_cursor_style = 'SteadyBar'
return config