Fixes Hyprland config (settings -> extraConfig)

This commit is contained in:
willemml 2023-11-16 10:36:27 -08:00
parent 2885c61fd3
commit 821e873d1f
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD

View file

@ -2,13 +2,9 @@
config, config,
pkgs, pkgs,
lib, lib,
inputs, globals,
... ...
}: { }: {
imports = [
inputs.hyprland.homeManagerModules.default
];
home.packages = with pkgs; [ home.packages = with pkgs; [
firefox firefox
lxappearance lxappearance
@ -24,37 +20,30 @@
services.mako.enable = true; services.mako.enable = true;
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
settings = { extraConfig = ''
input = { bind = SHIFT_SUPER, SPACE, exec, alacritty
sensitivity = 0.4; bind = SUPER, SPACE, exec, rofi -modes "ssh,drun,window" -show drun
accel_profile = "adaptive"; bind = ALT, SPACE, exec, rofi -show window
touchpad = {
natural_scroll = true;
scroll_factor = 0.45;
tap-and-drag = true;
};
};
gestures = { input {
workspace_swipe = true; kb_layout=${globals.keyboard.layout}
workspace_swipe_fingers = 3; kb_variant=${globals.keyboard.variant}
workspace_swipe_cancel_ratio = 0.5; sensitivity=0.4
workspace_swipe_distance = 2000; accel_profile=adaptive
workspace_swipe_invert = true; touchpad {
}; natural_scroll=true
}; scroll_factor=0.45
tap-and-drag=true
}
}
enable = true; gestures {
workspace_swipe=true
workspace_swipe_fingers=3
workspace_swipe_cancel_ratio=0.5
workspace_swipe_distance=2000
workspace_swipe_invert=true
}
'';
}; };
wayland.windowManager.hyprland.extraConfig = ''
bind = SHIFT_SUPER, SPACE, exec, alacritty
bind = SUPER, SPACE, exec, rofi -modes "ssh,drun,window" -show drun
bind = ALT, SPACE, exec, rofi -show window
input {
kb_layout=us
kb_variant=colemak
}
'';
} }