You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/generate-metadata
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -100,14 +100,13 @@ for svg_file in svg_files:
100
100
# Generate hypr cursor
101
101
output_dir=hyprcursor_output_dir/basename
102
102
output_dir.mkdir(parents=True, exist_ok=True)
103
-
# hyprcursor has no concept of nominal size so calculate the hotspot based on real size.
104
-
# users will have to set their hyprcursor to 1.333... times the size of GTK/XCursor size (https://github.com/catppuccin/cursors/pull/55#issuecomment-2502527484)
105
103
hotspot_x=round(hotspot.x() /real_size, 4) # convert to hyprcursor's hotspot format
106
104
hotspot_y=round(hotspot.y() /real_size, 4)
107
105
withopen(output_dir/"meta.hl", "w") asmeta_file:
108
106
meta_data=f"""resize_algorithm = none
109
107
hotspot_x = {hotspot_x}
110
-
hotspot_y = {hotspot_y}"""
108
+
hotspot_y = {hotspot_y}
109
+
nominal_size = {nominal_size/real_size}"""# calculate nominal ratio
0 commit comments