# Environment
env = PATH,$PATH:$scrPath
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = MOZ_ENABLE_WAYLAND,1
env = GDK_SCALE,1

# Misc
misc {
    vrr = 0
    animate_manual_resizes = true
    disable_hyprland_logo = true
    disable_splash_rendering = true
    force_default_wallpaper = 0
}

xwayland {
    force_zero_scaling = false
}

# Layout
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
    permanent_direction_override = true
}

scrolling {
		column_width = 0.8
		follow_min_visible = 0.1
		focus_fit_method = 1
}

# GTK shennanigans
exec = gsettings set org.gnome.desktop.interface icon-theme 'BeautyDream'
exec = gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha'
exec = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'

# Make things look nice
general {
    gaps_in = 3
    gaps_out = 5, 6, 6, 6
    border_size = 3
    col.active_border = rgba(ca9ee6cc) rgba(f38ba8cc) 45deg
		col.inactive_border = rgba(45475aaa) rgba(b4befeaa) 45deg
    layout = scrolling
    resize_on_border = true
}

ecosystem {
		no_update_news = true
		no_donation_nag = true
}

group {
    col.border_active = rgba(ca9ee6cc) rgba(f2d5cfcc) 45deg
    col.border_inactive = rgba(bac2decc) rgba(bac2decc) 45deg
    col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
    col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
}

decoration {
    rounding = 10

    active_opacity = 1.0
    inactive_opacity = 0.8

    dim_inactive = true
    dim_strength = 0.2

    blur {
        enabled = true
        size = 2
        passes = 3
				vibrancy = 0.5
    }
}

# Fonts and Cursors
exec = hyprctl setcursor Bibata-Modern-Ice 20
exec = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Ice'
exec = gsettings set org.gnome.desktop.interface cursor-size 20
exec = gsettings set org.gnome.desktop.interface font-name 'FiraMono Nerd Font'
exec = gsettings set org.gnome.desktop.interface document-font-name 'Cantarell 10'
exec = gsettings set org.gnome.desktop.interface monospace-font-name 'CaskaydiaCove Nerd Font Mono 9'
exec = gsettings set org.gnome.desktop.interface font-antialiasing 'rgba'
exec = gsettings set org.gnome.desktop.interface font-hinting 'full'
env XCURSOR_SIZE = 20

# Animations
animations {
    enabled = true

    bezier = smooth, 0.3,0,0.5,1
    bezier = my, 0.34,0.77,0.74,1.47

    animation = windows, 1, 2, smooth, slide right
    animation = windowsOut, 1, 2, smooth, slide right
    animation = windowsMove, 1, 3, smooth, slide
    animation = border, 1, 2, smooth
    animation = borderangle, 1, 8, smooth
    animation = fade, 1, 2, my
    animation = workspaces, 1, 1.7, smooth
		animation = specialWorkspace, 1, 1.7, smooth, slidefadevert -50%
    animation = layers, 1, 2, smooth, fade
    animation = fadeLayers, 1, 2, smooth
}
