alacritty

https://alacritty.org/config-alacritty.html

windows

位置

    %APPDATA%\alacritty\alacritty.toml

命令

cmd /c start /min "" pwsh.exe -WindowStyle Hidden -ExecutionPolicy Unrestricted -Command Start-Process -Verb runAs al

内容

[window]

opacity = 1

dimensions = { columns = 160, lines = 30 }

padding.x = 10
padding.y = 10

decorations = "Full"
decorations_theme_variant = "Dark"

option_as_alt = "Both"

startup_mode = "Windowed" # "Maximized"

title = ""

[font]

normal.family = "Sarasa Fixed SC"
bold.family = "Sarasa Fixed SC"
italic.family = "Sarasa Fixed SC"
bold_italic.family = "Sarasa Fixed SC"

size = 15.0

[terminal]
shell.program="pwsh"
shell.args= ["-NoLogo"]


[scrolling]
history = 100000
multiplier = 1


[colors]



[selection]
save_to_clipboard = true


[cursor]
style = { shape = "Block", blinking =  "Always" }
blink_interval = 1000
blink_timeout = 0
unfocused_hollow = true


[keyboard]

bindings = [
{ key = "Space", mods ="Control", mode ="~Search", action="ToggleViMode" },
{ key = "Q", mods ="None", mode ="Vi", action="ToggleViMode" },
{ key = "Y", mods ="Control", mode ="Vi|~Search", action="ScrollLineUp" },
{ key = "T", mods ="Control", mode ="Vi|~Search", action="ScrollHalfPageUp" },
{ key = "E", mods ="Control", mode ="Vi|~Search", action="ScrollLineDown" },
{ key = "R", mods ="Control", mode ="Vi|~Search", action="ScrollHalfPageDown" },

{ key = "Q", mods ="Alt",  action="Quit" },
{ key = "N", mods = "Control|Shift", action = "CreateNewWindow" },
{ key = "M", mods ="Control",  action="ToggleMaximized" },
{ key = "L", mods ="Control",  action="ClearHistory" },

{ key = "=", mods ="Control",  action="IncreaseFontSize" },
{ key = "-", mods ="Control",  action="DecreaseFontSize" },
{ key = "0", mods ="Control",  action="ResetFontSize" },

{ key = "V", mods = "Control", action = "Paste" },
]

mac

$HOME/.alacritty.toml
[window]

opacity = 1

dimensions = { columns = 160, lines = 30 }

padding.x = 10
padding.y = 10

decorations = "Full"
decorations_theme_variant = "Dark"

option_as_alt = "Both"

startup_mode = "Windowed" # "Maximized"

title = ""

[font]

normal.family = "Sarasa Fixed SC"
bold.family = "Sarasa Fixed SC"
italic.family = "Sarasa Fixed SC"
bold_italic.family = "Sarasa Fixed SC"

size = 15.0

[terminal]
shell.program="zsh"
shell.args= ["--login"]


[scrolling]
history = 100000
multiplier = 1


[colors]



[selection]
save_to_clipboard = true


[cursor]
style = { shape = "Block", blinking =  "Always" }
blink_interval = 1000
blink_timeout = 0
unfocused_hollow = true


[keyboard]

bindings = [
{ key = "Space", mods ="Control", mode ="~Search", action="ToggleViMode" },
{ key = "Q", mods ="None", mode ="Vi", action="ToggleViMode" },
{ key = "Y", mods ="Control", mode ="Vi|~Search", action="ScrollLineUp" },
{ key = "T", mods ="Control", mode ="Vi|~Search", action="ScrollHalfPageUp" },
{ key = "E", mods ="Control", mode ="Vi|~Search", action="ScrollLineDown" },
{ key = "R", mods ="Control", mode ="Vi|~Search", action="ScrollHalfPageDown" },

{ key= "Right", mods= "Alt", chars="\u001BF" },
{ key= "Left",  mods= "Alt", chars="\u001BB" },

{ key = "Q", mods ="Alt",  action="Quit" },
{ key = "N", mods = "Control|Shift", action = "CreateNewWindow" },
{ key = "M", mods ="Control",  action="ToggleMaximized" },
{ key = "L", mods ="Control",  action="ClearHistory" },

{ key = "=", mods ="Control",  action="IncreaseFontSize" },
{ key = "-", mods ="Control",  action="DecreaseFontSize" },
{ key = "0", mods ="Control",  action="ResetFontSize" },

{ key = "V", mods = "Control", action = "Paste" },
]
posted @ 2025-03-12 09:58  fndefbwefsowpvqfx  阅读(41)  评论(0)    收藏  举报