These are two simple scripts I use for taking screenshots:
- Full screenshot: Captures the entire screen.
- Cropped screenshot: Allows selecting an area to capture.
Both scripts perform two actions:
- Save the screenshot to
Pictures/Screenshotsfolder and clipboard
Install required packages:
sudo apt install xfce4-screenshooter scrot xclipMake sure they are executable
You can run the following commands:
chmod +x crop_screenshot.sh
chmod +x full_screenshot.shFor systems without a built-in shortcut manager, like Mint, you can use xbindkeys to achieve this.
Install xbindkeys with the following command:
sudo apt install xbindkeysCreate a default configuration file:
xbindkeys --defaults > ~/.xbindkeysrcOpen ~/.xbindkeysrc in a text editor to edit your shortcuts. You can use nano:
sudo nano ~/.xbindkeysrcAdd the following lines to bind the scripts to specific keys (you can adjust the key bindings):
# Full Screenshot (Print Screen)
"bash ~/full_screenshot.sh"
Print
# Cropped Screenshot (Ctrl + Print Screen)
"bash ~/crop_screenshot.sh"
Control + PrintPress Ctrl + S then Ctrl + X to save and exit
nano ~/.xsessionThen add the following line:
xbindkeys &Press Ctrl + S then Ctrl + X to save and exit