diff --git a/hosts/muon/configuration.nix b/hosts/muon/configuration.nix index 15e423b..3362a48 100644 --- a/hosts/muon/configuration.nix +++ b/hosts/muon/configuration.nix @@ -37,15 +37,8 @@ in { # Host specific - ## Network - # networking.interfaces.enp0s31f6.mtu = 1200; - ## Mouse 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 services.xserver.xrandrHeads = [ diff --git a/modules/home/terminal/emulator.nix b/modules/home/terminal/emulator.nix index a6c2319..b023c47 100644 --- a/modules/home/terminal/emulator.nix +++ b/modules/home/terminal/emulator.nix @@ -2,6 +2,45 @@ options.mods.terminal.emulator.enable = lib.mkEnableOption "enables terminal emulator"; 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"; + } + ]; + }; + }; }; }