hyprland default config

This commit is contained in:
Michael Thomson 2025-03-07 16:32:56 -05:00
parent 91f2476cd2
commit aebdb28b6a

View File

@ -9,17 +9,86 @@ inputs,
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
settings = {
env = [
"LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
];
monitor = [
"DP-1,1920x1080,0x0,1"
"HDMI-A-1,1920x1080,1920x0,1"
];
exec-once = [
"waybar"
];
env = [
# Nvidia stuff
"LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
# cursor
"XCURSOR_SIZE,24"
"HYPRCURSOR_SIZE,24"
];
"$mainMod" = "SUPER";
"$terminal" = "kitty";
"$menu" = "wofi --show drun";
general = {
gaps_in = 5;
gaps_out = 20;
border_size = 2;
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(595959aa)";
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false;
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false;
layout = "dwindle";
};
decoration = {
rounding = 10;
rounding_power = 2;
# Change transparency of focused and unfocused windows
active_opacity = 1.0;
inactive_opacity = 1.0;
shadow = {
enabled = true;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur = {
enabled = true;
size = 3;
passes = 1;
vibrancy = 0.1696;
};
};
misc = {
force_default_wallpaper = 0;
disable_hyprland_logo = true;
};
input = {
kb_layout = "us";
kb_variant = "";
kb_model = "";
kb_options = "";
kb_rules = "";
follow_mouse = 1;
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
touchpad = {
natural_scroll = false;
};
};
bind = [
"$mainMod, Q, exec, $terminal"
"$mainMod, C, killactive,"
@ -65,7 +134,6 @@ inputs,
programs = {
waybar = {
enable = true;
systemd.enable = true;
};
wofi = {
enable = true;
@ -81,9 +149,9 @@ inputs,
settings = {
ipc = "on";
splash = true;
preload =[ "~/wallpapers/dark-cat.png" ];
preload =[ "~/wallpapers/brown_city_planet_w.jpg" ];
wallpaper = [
"~/wallpapers/dark-cat.png"
"~/wallpapers/brown_city_planet_w.jpg"
];
};
};