Switch from kitty to Wezterm
This commit is contained in:
parent
6088e82ff9
commit
69a5cf92af
6 changed files with 68 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
**/fishd.tmp*
|
**/fishd.tmp*
|
||||||
vscode/argv.json
|
vscode/argv.json
|
||||||
|
fish/completions/wezterm.fish
|
||||||
|
fish/fish_variables
|
||||||
|
|
|
@ -103,3 +103,6 @@ if command_exists "xbps-install"; then
|
||||||
cp /usr/bin/sway-runner $GIT_DIR/
|
cp /usr/bin/sway-runner $GIT_DIR/
|
||||||
sudo chown $(whoami) sway-runner
|
sudo chown $(whoami) sway-runner
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Wezterm
|
||||||
|
cp ~/.wezterm.lua $GIT_DIR/wezterm.lua
|
|
@ -20,6 +20,9 @@ alias pls="please"
|
||||||
if [ $TERM = "xterm-kitty" ]
|
if [ $TERM = "xterm-kitty" ]
|
||||||
alias icat="kitten icat"
|
alias icat="kitten icat"
|
||||||
alias s="kitten ssh"
|
alias s="kitten ssh"
|
||||||
|
else
|
||||||
|
alias icat="wezterm imgcat"
|
||||||
|
alias s="ssh"
|
||||||
end
|
end
|
||||||
|
|
||||||
# NixOS
|
# NixOS
|
||||||
|
|
|
@ -113,6 +113,8 @@ done
|
||||||
|
|
||||||
# WezTerm
|
# WezTerm
|
||||||
wezterm shell-completion --shell fish > ~/.config/fish/completions/wezterm.fish
|
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
|
# VS code
|
||||||
mkdir -p $HOME/.config/Code/User/
|
mkdir -p $HOME/.config/Code/User/
|
||||||
|
|
|
@ -14,7 +14,7 @@ set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term kitty
|
set $term wezterm-gui
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# 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.
|
# on the original workspace that the command was run on.
|
||||||
|
|
57
wezterm.lua
Normal file
57
wezterm.lua
Normal 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
|
Loading…
Reference in a new issue