# ~/.config/hypr/conf.d/10-appearance.conf

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# https://wiki.hyprland.org/Configuring/Variables/#general
general {
  #layout = dwindle
  layout = master

  gaps_in = 3
  gaps_out = 0 2 2 2
  border_size = 1

  # 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)
  col.active_border = rgba(79,132,204,0.8)
  col.inactive_border = rgba(21,40,64,0.5)
    
  # 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

  layerrule = blur, waybar # Add blur to waybar
  layerrule = blurpopups, waybar # Blur waybar popups too!
  layerrule = ignorealpha 0.2, waybar # Make it so transparent parts are ignored

  # give kitty that frosted-glass effect
  layerrule = blur, kitty
  layerrule = ignorealpha 0.1, kitty
}

group {
  #col.border_active = rgba(33ccffee) rgba(00ff99ee) 45deg
  #col.border_inactive = 0x66777700 
  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
    rounding_power = 3.5
    gradient_rounding_power = 3.0
    #col.active = rgb(293B6E)
    #col.inactive = rgba(595959aa)
    col.active = rgb(79,132,204)
    col.inactive = rgba(21,40,64,0.3)
  }
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
  rounding = 5
  rounding_power = 4.0

  # Change transparency of focused and unfocused windows
  active_opacity = 1
  inactive_opacity = 1
  fullscreen_opacity = 1

  dim_inactive = false
  dim_strength = 0.2
  dim_around = 1.0

  # https://wiki.hyprland.org/Configuring/Variables/#blur
  blur {
    enabled = true
    size = 2
	  passes = 3
    xray = true
    #vibrancy = 0.1696
    vibrancy = 0.18
  }

  # https://wiki.hyprland.org/Configuring/Variables/#shadow
  shadow {
	  enabled = true
	  range = 6
	  render_power = 2
	  sharp = false
	  ignore_window = true
	  #color = 0xee1a1a1a
	  color = 0xdd0b1b2b
	  #color_inactive = unset
	  #offset = [ 0, 0 ]
	  scale = 1.0
  }
}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
  enabled = true

  # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

  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
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
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
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
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
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
  force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
  disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
  mouse_move_enables_dpms = true
  key_press_enables_dpms = true
}

ecosystem {
  enforce_permissions = true
}

xwayland {
  force_zero_scaling = true
}

render {
  send_content_type = true
  cm_auto_hdr = 1
  cm_fs_passthrough = 2
}
