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.gitA 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.
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."
```Your one-stop shop for church and ministry supplies.
AI assistant built for thoughtful, nuanced conversation
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan