mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Configure alacritty
This commit is contained in:
parent
e626f9d97e
commit
bd508dc6e9
2 changed files with 40 additions and 8 deletions
|
|
@ -37,15 +37,8 @@ in {
|
||||||
|
|
||||||
# Host specific
|
# Host specific
|
||||||
|
|
||||||
## Network
|
|
||||||
# networking.interfaces.enp0s31f6.mtu = 1200;
|
|
||||||
|
|
||||||
## Mouse
|
## Mouse
|
||||||
services.xserver.libinput.mouse.accelProfile = "flat";
|
services.xserver.libinput.mouse.accelProfile = "flat";
|
||||||
# services.xserver.displayManager.sessionCommands = ''
|
|
||||||
# ${pkgs.xorg.xinput} --set-prop "pointer:Logitech Gaming Mouse G502" "libinput Accel Profile Enabled" 0, 1
|
|
||||||
# ${pkgs.xorg.xinput} --set-prop "pointer:Logitech Gaming Mouse G502" "libinput Accel Speed" -0.4
|
|
||||||
# '';
|
|
||||||
|
|
||||||
## Monitors
|
## Monitors
|
||||||
services.xserver.xrandrHeads = [
|
services.xserver.xrandrHeads = [
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,45 @@
|
||||||
options.mods.terminal.emulator.enable = lib.mkEnableOption "enables terminal emulator";
|
options.mods.terminal.emulator.enable = lib.mkEnableOption "enables terminal emulator";
|
||||||
|
|
||||||
config = lib.mkIf config.mods.terminal.emulator.enable {
|
config = lib.mkIf config.mods.terminal.emulator.enable {
|
||||||
programs.alacritty.enable = true;
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
cursor = {
|
||||||
|
style.shape = "Beam";
|
||||||
|
vi_mode_style = "Block";
|
||||||
|
unfocused_hollow = true;
|
||||||
|
};
|
||||||
|
window = {
|
||||||
|
padding.x = 6;
|
||||||
|
padding.y = 6;
|
||||||
|
};
|
||||||
|
keyboard.bindings = [
|
||||||
|
{
|
||||||
|
key = "U";
|
||||||
|
mods = "Control";
|
||||||
|
mode = "Vi|~Search";
|
||||||
|
action = "ScrollHalfPageUp";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "D";
|
||||||
|
mods = "Control";
|
||||||
|
mode = "Vi|~Search";
|
||||||
|
action = "ScrollHalfPageDown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "U";
|
||||||
|
mods = "Control";
|
||||||
|
mode = "~Alt";
|
||||||
|
action = "ScrollHalfPageUp";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "D";
|
||||||
|
mods = "Control";
|
||||||
|
mode = "~Alt";
|
||||||
|
action = "ScrollHalfPageDown";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue