alacritty: port config: yaml to toml
This commit is contained in:
@@ -7,18 +7,34 @@
|
|||||||
{
|
{
|
||||||
sane.programs.alacritty = {
|
sane.programs.alacritty = {
|
||||||
env.TERMINAL = lib.mkDefault "alacritty";
|
env.TERMINAL = lib.mkDefault "alacritty";
|
||||||
# note: alacritty will switch to .toml config in 13.0 release
|
fs.".config/alacritty/alacritty.toml".symlink.text = ''
|
||||||
# - run `alacritty migrate` to convert the yaml to toml
|
[font]
|
||||||
fs.".config/alacritty/alacritty.yml".symlink.text = ''
|
size = 14
|
||||||
font:
|
|
||||||
size: 14
|
|
||||||
|
|
||||||
key_bindings:
|
[[keyboard.bindings]]
|
||||||
- { key: N, mods: Control, action: CreateNewWindow }
|
mods = "Control"
|
||||||
- { key: PageUp, mods: Control, action: ScrollPageUp }
|
key = "N"
|
||||||
- { key: PageDown, mods: Control, action: ScrollPageDown }
|
action = "CreateNewWindow"
|
||||||
- { key: PageUp, mods: Control|Shift, action: ScrollPageUp }
|
|
||||||
- { key: PageDown, mods: Control|Shift, action: ScrollPageDown }
|
[[keyboard.bindings]]
|
||||||
|
mods = "Control"
|
||||||
|
key = "PageUp"
|
||||||
|
action = "ScrollPageUp"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
mods = "Control"
|
||||||
|
key = "PageDown"
|
||||||
|
action = "ScrollPageDown"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
mods = "Control|Shift"
|
||||||
|
key = "PageUp"
|
||||||
|
action = "ScrollPageUp"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
mods = "Control|Shift"
|
||||||
|
key = "PageDown"
|
||||||
|
action = "ScrollPageDown"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user