mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
meta: Add kitty
I've gone through a lot of terminal emulators by now, and have always switched between URxvt and Termite (due to the features they support). For URxvt, this is particularly cumbersome since the version in the official repositories does not have the patches required for practical use. Even with patches applied, URxvt supports neither true color nor emoji. Termite worked well, but it lacked image support. Kitty features all of the following: - True color support - Image support - Emoji support - Icon fonts support - Transparency support Additionally, projects like Ranger and Neofetch have already taken the initiative to support the Kitty image protocol (which, luckily for me, are the only programs I use with images in the terminal). Why not Alacritty, the other GPU-based terminal? --- Although Alacritty is also very performant, there are several things that keep me away from this terminal emulator. Alacritty, as of this writing, renders neither images nor emoji. Although it is certainly possible to use a terminal emulator without either of these, the lack of these features limits what you can do with the program you (presumably) spend the most time with on your computer. The current config setup is "all or nothing"; I cannot remove defaults from my alacritty.yml and expect those same defaults to carry over. Even common terminal escape sequences are hard-coded into the config file, which cannot be removed without breaking things. Some other benefits of kitty: - Full image support in transparent terminals - w3m hack + loop is no longer necessary for persistent images - No weird artifacts around the image - Can highlight text without affecting the image - Images aren't lost after switching between desktops
This commit is contained in:
parent
0eb271a50c
commit
207ef19a7b
@ -23,9 +23,11 @@ bspc config presel_feedback_color "$color1"
|
||||
mkdir -p "${HOME}/.config/zathura"
|
||||
mkdir -p "${HOME}/.config/termite"
|
||||
mkdir -p "${HOME}/.config/dunst"
|
||||
mkdir -p "${HOME}/.config/kitty"
|
||||
ln -sf "${HOME}/.cache/wal/zathurarc" "${HOME}/.config/zathura/zathurarc"
|
||||
ln -sf "${HOME}/.cache/wal/termite" "${HOME}/.config/termite/config"
|
||||
ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc"
|
||||
ln -sf "${HOME}/.cache/wal/kitty.conf" "${HOME}/.config/kitty/kitty.conf"
|
||||
|
||||
# ===================
|
||||
# ====== dunst ======
|
||||
|
50
bspwm/.config/wal/templates/kitty.conf
Normal file
50
bspwm/.config/wal/templates/kitty.conf
Normal file
@ -0,0 +1,50 @@
|
||||
font_family Hack
|
||||
font_size 11.0
|
||||
|
||||
window_border_width 5.0
|
||||
draw_minimal_borders no
|
||||
|
||||
window_padding_width 10.0
|
||||
|
||||
background_opacity 1.0
|
||||
|
||||
foreground {foreground}
|
||||
background {background}
|
||||
cursor {cursor}
|
||||
|
||||
selection_foreground {background}
|
||||
selection_background {foreground}
|
||||
|
||||
active_border_color {color1}
|
||||
inactive_border_color {color2}
|
||||
bell_border_color {color3}
|
||||
|
||||
color0 {color0}
|
||||
color1 {color1}
|
||||
color2 {color2}
|
||||
color3 {color3}
|
||||
color4 {color4}
|
||||
color5 {color5}
|
||||
color6 {color6}
|
||||
color7 {color7}
|
||||
color8 {color8}
|
||||
color9 {color9}
|
||||
color10 {color10}
|
||||
color11 {color11}
|
||||
color12 {color12}
|
||||
color13 {color13}
|
||||
color14 {color14}
|
||||
color15 {color15}
|
||||
|
||||
tab_bar_style separator
|
||||
tab_bar_margin_width 10.0
|
||||
tab_separator " "
|
||||
|
||||
active_tab_foreground {color1}
|
||||
active_tab_background {background}
|
||||
active_tab_font_style normal
|
||||
|
||||
inactive_tab_foreground {foreground}
|
||||
inactive_tab_background {background}
|
||||
|
||||
# vim:ft=conf
|
@ -31,6 +31,6 @@ alias w shell -fs launch wal -o "$HOME/.config/wal/done.sh" -i %f
|
||||
set use_preview_script true
|
||||
set preview_files true
|
||||
set preview_images true
|
||||
set preview_images_method urxvt
|
||||
set preview_images_method kitty
|
||||
|
||||
# vim:ft=dosini
|
||||
|
Loading…
Reference in New Issue
Block a user