feat: alacritty + tmux config

This commit is contained in:
subcrip 2024-05-13 20:51:32 +08:00
parent 4256eaf166
commit 9cf0ffd000
Signed by: subcrip
SSH Key Fingerprint: SHA256:dFPFi68d8C87YkFkEBU4TkcrYRySWpekRR1hbnDWUCw
2 changed files with 41 additions and 0 deletions

8
.tmux.conf Normal file
View File

@ -0,0 +1,8 @@
set -g default-terminal "xterm-kitty"
set -g terminal-overrides "xterm-kitty"
# true colours support
# set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides ",xterm-256color:Tc"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# underscore colours - needs tmux-3.0
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'

33
alacritty.toml Normal file
View File

@ -0,0 +1,33 @@
live_config_reload = true
[env]
TERM = "xterm-256color"
[shell]
program = "/home/linuxbrew/.linuxbrew/bin/tmux"
[window]
opacity = 0.9
[font]
size = 13.0
offset.x = -1
[font.normal]
family = "FiraCode Nerd Font"
[font.bold]
family = "FiraCode Nerd Font"
[font.italic]
family = "FiraCode Nerd Font"
[font.bold_italic]
family = "FiraCode Nerd Font"
[cursor.style]
shape = "Beam"
blinking = "Never"
[colors]
transparent_background_colors = true
draw_bold_text_with_bright_colors= true
[mouse]
hide_when_typing = true
[keyboard]
bindings = [
{ key = "N", mods = "Control|Shift", action = 'CreateNewWindow' },
{ key = "+", mods = "Control|Shift", action = 'IncreaseFontSize' },
{ key = "_", mods = "Control|Shift", action = 'DecreaseFontSize' },
{ key = ")", mods = "Control|Shift", action = 'ResetFontSize' },
]