look_and_feel.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. hl.config({
  2. general = {
  3. gaps_in = 0,
  4. gaps_out = 0,
  5. border_size = 2,
  6. col = {
  7. active_border = { colors = {"rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45 },
  8. inactive_border = "rgba(595959aa)",
  9. },
  10. -- Set to true to enable resizing windows by clicking and dragging on borders and gaps
  11. resize_on_border = true,
  12. -- Please see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Tearing/ before you turn this on
  13. allow_tearing = false,
  14. layout = "dwindle",
  15. },
  16. decoration = {
  17. rounding = 0,
  18. rounding_power = 0,
  19. -- Change transparency of focused and unfocused windows
  20. active_opacity = 1.0,
  21. inactive_opacity = 1.0,
  22. shadow = {
  23. enabled = true,
  24. range = 4,
  25. render_power = 3,
  26. color = 0xee1a1a1a,
  27. },
  28. blur = {
  29. enabled = false,
  30. size = 3,
  31. passes = 1,
  32. vibrancy = 0.1696,
  33. },
  34. },
  35. animations = {
  36. enabled = false,
  37. },
  38. })
  39. -- Default curves and animations, see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
  40. hl.curve("easeOutQuint", { type = "bezier", points = { {0.23, 1}, {0.32, 1} } })
  41. hl.curve("easeInOutCubic", { type = "bezier", points = { {0.65, 0.05}, {0.36, 1} } })
  42. hl.curve("linear", { type = "bezier", points = { {0, 0}, {1, 1} } })
  43. hl.curve("almostLinear", { type = "bezier", points = { {0.5, 0.5}, {0.75, 1} } })
  44. hl.curve("quick", { type = "bezier", points = { {0.15, 0}, {0.1, 1} } })
  45. -- Default springs
  46. hl.curve("easy", { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 })
  47. hl.animation({ leaf = "global", enabled = true, speed = 10, bezier = "default" })
  48. hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" })
  49. hl.animation({ leaf = "windows", enabled = true, speed = 4.79, spring = "easy" })
  50. hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, spring = "easy", style = "popin 87%" })
  51. hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" })
  52. hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" })
  53. hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" })
  54. hl.animation({ leaf = "fade", enabled = true, speed = 3.03, bezier = "quick" })
  55. hl.animation({ leaf = "layers", enabled = true, speed = 3.81, bezier = "easeOutQuint" })
  56. hl.animation({ leaf = "layersIn", enabled = true, speed = 4, bezier = "easeOutQuint", style = "fade" })
  57. hl.animation({ leaf = "layersOut", enabled = true, speed = 1.5, bezier = "linear", style = "fade" })
  58. hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 1.79, bezier = "almostLinear" })
  59. hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.39, bezier = "almostLinear" })
  60. hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
  61. hl.animation({ leaf = "workspacesIn", enabled = true, speed = 1.21, bezier = "almostLinear", style = "fade" })
  62. hl.animation({ leaf = "workspacesOut", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
  63. hl.animation({ leaf = "zoomFactor", enabled = true, speed = 7, bezier = "quick" })
  64. -- Ref https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
  65. -- "Smart gaps" / "No gaps when only"
  66. -- uncomment all if you wish to use that.
  67. -- hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
  68. -- hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
  69. -- hl.window_rule({
  70. -- name = "no-gaps-wtv1",
  71. -- match = { float = false, workspace = "w[tv1]" },
  72. -- border_size = 0,
  73. -- rounding = 0,
  74. -- })
  75. -- hl.window_rule({
  76. -- name = "no-gaps-f1",
  77. -- match = { float = false, workspace = "f[1]" },
  78. -- border_size = 0,
  79. -- rounding = 0,
  80. -- })
  81. -- See https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ for more
  82. hl.config({
  83. dwindle = {
  84. preserve_split = true, -- You probably want this
  85. },
  86. })
  87. -- See https://wiki.hypr.land/Configuring/Layouts/Master-Layout/ for more
  88. hl.config({
  89. master = {
  90. new_status = "master",
  91. },
  92. })
  93. -- See https://wiki.hypr.land/Configuring/Layouts/Scrolling-Layout/ for more
  94. hl.config({
  95. scrolling = {
  96. fullscreen_on_one_column = true,
  97. },
  98. })