2023-10-24 18:31:26 -07:00
|
|
|
{config, lib, pkgs, osConfig, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2023-10-26 16:49:06 -07:00
|
|
|
hostname = osConfig.networking.hostName;
|
|
|
|
|
|
|
|
monitor_config = import ./monitors.nix { hostname = hostname; };
|
|
|
|
|
2023-11-17 11:40:02 -08:00
|
|
|
two_monitor_hosts = [
|
|
|
|
"NicksNixDesktop"
|
|
|
|
];
|
2023-10-24 18:31:26 -07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
2023-10-27 09:14:18 -07:00
|
|
|
../ewwbar
|
2023-10-24 18:31:26 -07:00
|
|
|
./keybinds.nix
|
2023-10-26 18:26:39 -07:00
|
|
|
./displays.nix
|
2023-10-24 18:31:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
swww
|
|
|
|
];
|
|
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.hyprland;
|
|
|
|
# Whether to enable XWayland
|
|
|
|
xwayland.enable = true;
|
|
|
|
|
|
|
|
# Optional
|
|
|
|
# Whether to enable hyprland-session.target on hyprland startup
|
|
|
|
systemd.enable = true;
|
|
|
|
|
2023-12-20 17:19:53 -08:00
|
|
|
# Whether to enable patching wlroots for better Nvidia support
|
|
|
|
enableNvidiaPatches = true;
|
2023-10-26 16:49:06 -07:00
|
|
|
extraConfig = lib.strings.concatStrings [
|
|
|
|
monitor_config
|
2023-10-24 18:31:26 -07:00
|
|
|
''
|
|
|
|
|
|
|
|
''
|
2023-10-26 16:49:06 -07:00
|
|
|
];
|
2023-10-24 18:31:26 -07:00
|
|
|
|
|
|
|
settings = {
|
2023-10-26 16:49:06 -07:00
|
|
|
|
2023-10-24 18:31:26 -07:00
|
|
|
"$mod" = "SUPER";
|
|
|
|
|
|
|
|
exec-once = [
|
|
|
|
"${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png"
|
2023-11-17 11:40:02 -08:00
|
|
|
"eww open-many logout restart shutdown reboot_windows dash_music dash_computer_status"
|
2023-11-09 16:57:11 -08:00
|
|
|
"eww open dash_clock_bg;eww open dash_clock" # the order here matters
|
2023-11-17 11:40:02 -08:00
|
|
|
] ++ pkgs.lib.optionals (builtins.elem hostname two_monitor_hosts ) [
|
|
|
|
"eww open-many left_screen_bar right_screen_bar"
|
|
|
|
] ++ pkgs.lib.optionals (! builtins.elem hostname two_monitor_hosts ) [
|
|
|
|
"eww open full_screen_bar"
|
|
|
|
];
|
2023-10-24 18:31:26 -07:00
|
|
|
|
2023-12-17 15:37:09 -08:00
|
|
|
input = if (hostname == "NicksNixLaptop") then
|
|
|
|
{
|
|
|
|
kb_layout = "us";
|
2023-12-17 15:43:04 -08:00
|
|
|
sensitivity = 0.3;
|
2023-12-17 15:37:09 -08:00
|
|
|
accel_profile = "linear";
|
|
|
|
touchpad.disable_while_typing = true;
|
|
|
|
} else {
|
2023-10-24 18:31:26 -07:00
|
|
|
kb_layout = "us";
|
|
|
|
sensitivity = -0.85;
|
|
|
|
accel_profile = "adaptive";
|
|
|
|
touchpad.disable_while_typing = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
general = {
|
|
|
|
gaps_in = 5;
|
2023-10-29 16:23:45 -07:00
|
|
|
gaps_out = 8;
|
|
|
|
border_size = 2.0;
|
2023-10-24 18:31:26 -07:00
|
|
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
|
|
|
animations = {
|
|
|
|
enabled = true;
|
|
|
|
animation = [
|
|
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
|
|
"border, 1, 10, default"
|
|
|
|
"borderangle, 1, 8, default"
|
|
|
|
"fade, 1, 7, default"
|
|
|
|
"workspaces, 1, 6, default"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
|
|
decoration = {
|
2023-10-29 16:23:45 -07:00
|
|
|
shadow_offset = "5 5";
|
2023-10-24 18:31:26 -07:00
|
|
|
rounding = 5;
|
|
|
|
"col.shadow" = "rgba(00000099)";
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
|
|
gestures = { workspace_swipe = false; };
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|