system settings
git clone https://git.lucas.co/cce-system-interface.git
scratch/find_add_button.py (816B)
1 from PIL import Image
2
3 # Load the screenshot
4 img = Image.open("/home/lsgalante/.gemini/antigravity/brain/e9f42138-61bb-4037-ac7e-0b1d2091db1c/screenshot_final.png")
5 print("Image size:", img.size)
6
7 # Scale window bounds by 2
8 wx = 100 * 2
9 wy = 100 * 2
10 ww = 400 * 2
11 wh = 680 * 2
12
13 # Touchpad is in the upper half of the window
14 crop_touchpad = img.crop((wx, wy, wx + ww, wy + wh // 2))
15 crop_touchpad.save("/home/lsgalante/.gemini/antigravity/brain/e9f42138-61bb-4037-ac7e-0b1d2091db1c/crop_touchpad_final.png")
16 print("Touchpad crop saved.")
17
18 # Keybindings is in the lower half of the window
19 crop_keybindings = img.crop((wx, wy + wh // 2, wx + ww, wy + wh))
20 crop_keybindings.save("/home/lsgalante/.gemini/antigravity/brain/e9f42138-61bb-4037-ac7e-0b1d2091db1c/crop_keybindings_final.png")
21 print("Keybindings crop saved.")