- Lightweight
- Possibility to copy custom command/string to clipboard, together with image path
- Remembers previously selected region, enables taking a new screenshot with same region again
- Configurable
- Can be executed with flags
Pacman:
sudo pacman -S dumpmyscreen
Yay:
yay -S dumpmyscreen
As the application is very lightweight and simple, there is not much to be said here. But lets do a quick rundown of the main functionality at least.
This function will trigger the crosshair the you can then use to select an area to screenshot.
Takes a screenshot using the coordinates from the previously selected region, when the last screenshot was taken.
You can execute the application using flags, currently there is only one flag, but there is a high chance that there will be more in the future.
See the Flags section for further information and examples on how to use it.
Saves the image to clipboard, you can then simply paste it into any application that can handle images directly from clipboard.
This option saves the screenshot to the directory chosen in the configuration, more info on screenshot folder can be found here Screenshot folder
The screenshot flag can be used to trigger the "Take screenshot" function directly. This can be useful if you want to take a screenshot using a script or for example bind it to a key in your Window Manager.
Usage:
dumpmyscreen --screenshot
Usage example using i3:
bindsym Print exec dumpmyscreen --screenshot
The configuration file is located here:
~/.config/dumpmyscreen/config.conf
The folder where all the screenshots will end up.
Default value:
Screenshotfolder = ~/.config/dumpmyscreen/screenshots
Whenever "Custom to clipboard" or "CTRL + X" is pressed after taking a screenshot, the string that is saved in the config file, will be used together with the file path of the screenshot.
Example config value:
CustomString = /upload
Will yield:
/upload /home/username/.config/dumpmyscreen/screenshots/screenshot_YYYYMMDD_HHMMSS.png
This option defaults to true, whenever it is set to false, it will hide the icon from the system tray.
Default value:
ShowInSystray = true
This option defaults to empty string, whenever you take a screenshot it will get populated with the coordinates of from the selected area when the user took the screenshot. These coordinates are then used for the "Take Screenshot with Previous Region" function.
This option is not something that needs to be manually configured, but simply a choice by me to use instead of having to store it in a temp file.
Default value:
SelectedRegionCoordinates = ""
This option defaults to false. Whenever it is set to true, it will mimic the look of what the application would look like after taking a screenshot, on a system that actually has a compositor. So if you for example run a WM without a compositor, after taking a screenshot everything behind the floating window showing the screenshot preview would just be black. Set this to true and it will now show the desktop behind the floating window again. It is a little bit of a hack, so you can choose for yourself if this is for you or not.
If you have a compositor, just leave this at false.
Default value:
NoCompositorMode = false