# Laptop adopts desktop look & feel
# Theme, blur, shadows, groupbar, master tuning

general {
  layout = master
  gaps_in = 3
  gaps_out = 0 2 2 2
  border_size = 1
  col.active_border = rgba(79,132,204,0.8)
  col.inactive_border = rgba(21,40,64,0.5)
  resize_on_border = false
  allow_tearing = false

  # Match Waybar/kitty frosting like PC
  layerrule = blur, waybar
  layerrule = blurpopups, waybar
  layerrule = ignorealpha 0.2, waybar
  layerrule = blur, kitty
  layerrule = ignorealpha 0.1, kitty
}

group {
  col.border_active = rgba(79,132,204,0.8)
  col.border_inactive = rgba(21,40,64,0.4)
  col.border_locked_active = 0xfc6a0300
  col.border_locked_inactive = 0x66775500

  groupbar {
    font_size = 12
    height = 18
    gradients = true
    col.active = rgb(79,132,204)
    col.inactive = rgba(21,40,64,0.3)
  }
}

decoration {
  rounding = 5
  rounding_power = 4.0
  active_opacity = 1
  inactive_opacity = 1
  fullscreen_opacity = 1
  dim_inactive = false
  dim_strength = 0.2
  dim_around = 1.0

  blur {
    enabled = true
    size = 2
    passes = 3
    xray = true
    vibrancy = 0.18
  }

  shadow {
    enabled = true
    range = 6
    render_power = 2
    sharp = false
    ignore_window = true
    color = 0xdd0b1b2b
    scale = 1.0
  }
}

animations {
  enabled = true
  bezier = myBezier, 0.05, 0.9, 0.1, 1.05
  animation = windows, 1, 7, myBezier
  animation = windowsOut, 1, 7, default, popin 80%
  animation = border, 1, 10, default
  animation = borderangle, 1, 8, default
  animation = fade, 1, 7, default
  animation = workspaces, 1, 6, default
}

dwindle {
  pseudotile = true
  preserve_split = true
}

master {
  new_status = slave
  orientation = center
  mfact = 0.6
  slave_count_for_center_master = 4
  new_on_top = true
  inherit_fullscreen = true
  new_on_active = after
  center_master_fallback = left
}

misc {
  force_default_wallpaper = 1
  disable_hyprland_logo = false
}

xwayland {
  force_zero_scaling = true
}

# Laptop-only input niceties
input {
  kb_layout = ultimatekeys
  follow_mouse = 1
  touchpad {
    natural_scroll = true
    tap = true
    tap-to-click = true
    middle_button_emulation = true
    disable_while_typing = true
    scroll_factor = 0.7
  }
  sensitivity = 0
}
