Update kitty config

This commit is contained in:
rydesun 2026-06-29 23:01:55 +08:00
parent 75ae9af916
commit 9860cd648e
2 changed files with 16 additions and 13 deletions

View file

@ -2,7 +2,7 @@ allow_remote_control socket-only
listen_on unix:/tmp/kitty
# {{{ 主题
font_size 10
font_size 15
background_opacity 0.95
# 关闭响铃声音

View file

@ -1,19 +1,22 @@
# 新窗口打开目录
protocol file
mime inode/directory
action launch --type=os-window --cwd "$FILE_PATH"
protocol file
mime image/*
action launch --type=overlay kitten icat --hold "$FILE_PATH"
# 用桌面应用打开
protocol file
mime video/*, audio/*, application/*, text/html
action launch --type=background kde-open "$FILE_PATH"
# 编辑带行号的文件
protocol file
fragment_matches [0-9]+
action launch --type=overlay $EDITOR +$FRAGMENT "$FILE_PATH"
# 在浏览器中打开html
# 编辑任意文件
protocol file
mime text/html
action launch --type=background xdg-open "$FILE_PATH"
# 编辑文本文件
protocol file
mime text/*
action launch --type=overlay $EDITOR "$FILE_PATH"
# 在tab中查看图片
protocol file
mime image/*
action launch --type=tab kitty +kitten icat --hold "$FILE_PATH"