A lightweight, distro-agnostic screenshot utility for Linux that automatically names files with timestamps and copies the file path to your clipboard. This is espcially handy for sharing images with Claude Code on linux.
git clone https://github.com/thecodecentral/gshot-copy.gitgshot-copy is a distro-agnostic screenshot wrapper for Linux that automates the process of capturing, naming, and sharing screenshots. It automatically generates timestamped filenames in the format gshot-YYYY-MM-DD-HHMMSS-XXXX.png and copies the file path directly to your clipboard, eliminating manual file management. The tool supports three screenshot modes—area selection, window capture, and full screen—and works across bash, zsh, fish, and dash shells. Developers using Claude Code benefit from instant clipboard integration, enabling seamless image sharing with the assistant. With minimal dependencies and cross-shell compatibility, gshot-copy streamlines screenshot workflows on any Linux distribution.
Install scrot and a clipboard utility (xclip, xsel, or wl-copy) for your Linux distribution, then download the gshot-copy script to ~/.local/bin/ and make it executable. Bind gshot-copy to a keyboard shortcut in your desktop environment—use Shift+PrintScreen for area mode, Ctrl+Shift+PrintScreen for window mode, or Alt+PrintScreen for full screen. Press your chosen shortcut to capture, then paste the copied file path into Claude Code or any application.
Sharing debug screenshots with Claude Code during development sessions
Capturing specific UI areas for bug reports with automatic timestamped organization
Taking window screenshots for documentation with one keyboard shortcut
Full-screen captures with configurable output directory for team collaboration
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/thecodecentral/gshot-copyCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a bash script for a lightweight, distro-agnostic screenshot utility for Linux called gshot-copy. The script should automatically name files with timestamps and copy the file path to the clipboard. The script should be compatible with [DISTRO] and use [SCREENSHOT_TOOL] for capturing screenshots. Include error handling for common issues like missing dependencies or permission issues.
```bash
#!/bin/bash
# gshot-copy - A lightweight, distro-agnostic screenshot utility for Linux
# Check for dependencies
if ! command -v scrot &> /dev/null; then
echo "Error: scrot is not installed. Please install it first."
exit 1
fi
if ! command -v xclip &> /dev/null; then
echo "Error: xclip is not installed. Please install it first."
exit 1
fi
# Capture screenshot and save with timestamp
screenshot_path="~/Pictures/Screenshots/screenshot_$(date +%Y%m%d_%H%M%S).png"
scrot "$screenshot_path"
# Copy file path to clipboard
echo "$screenshot_path" | xclip -selection clipboard
echo "Screenshot saved to: $screenshot_path"
echo "File path copied to clipboard."
```Automate your browser workflows effortlessly
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan