A lightweight, Mac&Windows screenshot utility built with Java Swing.
Provides tools for screen capture, annotation, and instant sharing.
- Global Capture: Trigger screenshot mode globally using a configurable hotkey (Default:
F12). - Flexible Selection: Draggable and resizable capture area with 8-point handles and real-time dimension display.
- Annotation Tools:
- Pen: Freehand drawing tool. Right-click to change color.
- Highlighter: Semi-transparent marking tool. Right-click to change color.
- Color Picker: Open a color wheel by right-clicking the Pen or Highlighter tools to customize drawing colors.
- Output Options:
- Clipboard: Copy the selection directly to the system clipboard (Default:
CTRL+C). - Local Save: Save screenshots to a specified directory with auto-incrementing filenames (Default:
CTRL+S). - Remote Upload: Upload captures to a remote host via a multipart POST request (Default:
CTRL+U).
- Clipboard: Copy the selection directly to the system clipboard (Default:
- Configuration:
- Reconfigurable hotkeys for all major actions.
- Customizable save destinations and remote upload endpoints.
- Settings accessible via hotkey (Default:
CTRL+ALT+S) or the system tray.
- Multi-Monitor Support: Captures across all connected displays and virtual desktops.
- Background Operation: Runs as a background process with a system tray icon (Windows) or menu bar item (macOS).
- Language: Java 8+.
- Framework: Swing & AWT.
- Native Hooks: Uses
JNativeHookfor global keyboard listening. - Upload API: Expects a remote server with a
POST /api/v1/imageendpoint that accepts multipart form-data and returns a JSON object containing anidfield.
- Java Development Kit (JDK) 8 or higher.
- Maven.
- Clone the repository:
git clone https://github.com/ozanaaslan/LeafShotSwingUI.git cd LeafShotSwingUI - Build the project:
mvn clean install
- Execute the application:
mvn exec:java -Dexec.mainClass="com.github.ozanaaslan.leafshot.LeafShot"
| Action | Keybinding |
|---|---|
| Take Screenshot | F12 |
| Copy to Clipboard | CTRL + C |
| Save to Disk | CTRL + S |
| Upload to Server | CTRL + U |
| Open Settings | CTRL + ALT + S |
| Open Save Folder | CTRL + ALT + O |
| Cancel Capture | ESC |
- Windows: Resides in the System Tray.
- macOS: Operates as a Menu Bar application (
UIElementmode). Requires Accessibility permissions for global hotkey functionality.
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- Commercial use is prohibited.
- Derivatives must be shared under the same license.
