# Flameshot **Repository Path**: scada/Flameshot ## Basic Information - **Project Name**: Flameshot - **Description**: Flameshot 是一个功能强大但易于使用的屏幕截图软件,适用于 Windows、Linux 和 macOS - **Primary Language**: C/C++ - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/flameshot - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 8 - **Created**: 2021-04-08 - **Last Updated**: 2022-08-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
## Preview  ## Index - [Features](#features) - [Usage](#usage) - [CLI configuration](#cli-configuration) - [Config file](#config-file) - [Keyboard Shortcuts](#keyboard-shortcuts) - [Local](#local) - [Global](#global) - [On KDE Plasma desktop](#on-kde-plasma-desktop) - [On Ubuntu](#on-ubuntu-tested-on-1804) - [Considerations](#considerations) - [Installation](#installation) - [Prebuilt Packages](#prebuilt-packages) - [Packages from Repository](#packages-from-repository) - [Compilation](#compilation) - [Dependencies](#dependencies) - [Compile-time](#compile-time) - [Run-time](#run-time) - [Optional](#optional) - [Debian](#debian) - [Fedora](#fedora) - [Arch](#arch) - [Build](#build) - [Install](#install) - [License](#license) - [Privacy Policy](#privacy-policy) - [Code Signing Policy](#code-signing-policy) - [Contribute](#contribute) - [Acknowledgment](#acknowledgment) ## Features - Customizable appearance. - Easy to use. - In-app screenshot editing. - DBus interface. - Upload to Imgur. ## Usage Executing the command `flameshot` without parameters will launch a running instance of the program in background without taking actions. If your desktop environment provides tray area, a tray icon will also appear in the tray for users to perform configuration and management. Example commands: - Capture with GUI: ```shell flameshot gui ``` - Capture with GUI with custom save path: ```shell flameshot gui -p ~/myStuff/captures ``` - Capture with GUI after 2 seconds delay (can be useful to take screenshots of mouse hover tooltips, etc.): ```shell flameshot gui -d 2000 ``` - Fullscreen capture with custom save path (no GUI) and delayed: ```shell flameshot full -p ~/myStuff/captures -d 5000 ``` - Fullscreen capture with custom save path copying to clipboard: ```shell flameshot full -c -p ~/myStuff/captures ``` - Capture the screen containing the mouse and print the image (bytes) in PNG format: ```shell flameshot screen -r ``` - Capture the screen number 1 and copy it to the clipboard: ```shell flameshot screen -n 1 -c ``` In case of doubt choose the first or the second command as shortcut in your favorite desktop environment. A systray icon will be in your system's panel while Flameshot is running. Do a right click on the tray icon and you'll see some menu items to open the configuration window and the information window. Check out the About window to see all available shortcuts in the graphical capture mode. ### CLI configuration You can use the graphical menu to configure Flameshot, but alternatively you can use your terminal or scripts to do so. - Open the configuration menu: ```shell flameshot config ``` - Show the initial help message in the capture mode: ```shell flameshot config --showhelp true ``` - For more information about the available options use the help flag: ```shell flameshot config -h ``` ### Config file You can also edit some of the settings (like overriding the default colors) in the configuration file located at `~/.config/flameshot/flameshot.ini`. ## Keyboard shortcuts ### Local These shortcuts are available in GUI mode: | Keys | Description | |--- |--- | | P | Set the Pencil as paint tool | | D | Set the Line as paint tool | | A | Set the Arrow as paint tool | | S | Set Selection as paint tool | | R | Set the Rectangle as paint tool | | C | Set the Circle as paint tool | | M | Set the Marker as paint tool | | T | Add text to your capture | | B | Set Pixalate as the paint tool | | ←, ↓, ↑, → | Move selection 1px | | Shift + ←, ↓, ↑, → | Resize selection 1px | | Esc | Quit capture | | Ctrl + M | Move the selection area | | Ctrl + C | Copy to clipboard | | Ctrl + S | Save selection as a file | | Ctrl + Z | Undo the last modification | | Ctrl + Shift + Z | Redo the next modification | | Ctrl + Q | Leave the capture screen | | Ctrl + O | Choose an app to open the capture | | Return | Upload the selection to Imgur | | Spacebar | Toggle visibility of sidebar with options of the selected tool, color picker for the drawing color and history menu | | Right Click | Show the color wheel | | Mouse Wheel | Change the tool's thickness | | Print screen | Capture Screen | | Shift + Print | Screenshot History | Shift + drag a handler of the selection area: mirror redimension in the opposite handler. ### Global If you want use Flameshot as a default screenshot utility, chances are you want to launch it using the Prt Sc key. Flameshot doesn't yet offer a fully-automated option to do so, but you can configure your system to do so. #### On KDE Plasma desktop To make configuration easier, there's a [file](docs/shortcuts-config/flameshot-shortcuts-kde) in the repository that more or less automates this process. This file will assign the following keys to the following actions by default: | Keys | Description | |--- |--- | | Prt Sc | Start the Flameshot screenshot tool and take a screenshot | | Ctrl + Prt Sc | Wait for 3 seconds, then start the Flameshot screenshot tool and take a screenshot | | Shift + Prt Sc | Take a full-screen (all monitors) screenshot and save it | | Ctrl + Shift + Prt Sc | Take a full-screen (all monitors) screenshot and copy it to the clipboard | If you don't like the defaults, you can change them manually later. Steps for using the configuration: 1. The configuration file configures shortcuts so that Flameshot automatically saves (without opening the save dialog) screenshots to `~/Pictures/Screenshots` folder. Make sure you have that folder by running the following command: ```shell mkdir -p ~/Pictures/Screenshots ``` (If you don't like the default location, you can skip this step and configure your preferred directory later.) 2. Download the configuration file: ```shell cd ~/Desktop wget https://raw.githubusercontent.com/flameshot-org/flameshot/master/docs/shortcuts-config/flameshot-shortcuts-kde ``` 3. Go to _System Settings_ → _Shortcuts_ → _Custom Shortcuts_. 4. If there's one, you'll need to disable an entry for Spectacle, the default KDE screenshot utility first because its shortcuts might collide with Flameshot's ones; so, just uncheck the _Spectacle_ entry. 5. Click _Edit_ → _Import..._, navigate to the Desktop folder (or wherever you saved the configuration file) and open the configuration file. 6. Now the Flameshot entry should appear in the list. Click _Apply_ to apply the changes. 7. If you want to change the defaults, you can expand the entry, select the appropriate action and modify it as you wish; the process is pretty mush self-explanatory. #### On Ubuntu (Tested on 18.04) To use Flameshot instead of the default screenshot application in Ubuntu we need to remove the binding on Prt Sc key, and then create a new binding for `/usr/bin/flameshot gui` ([adaptated](https://askubuntu.com/posts/1039949/revisions) from [Pavel's answer on AskUbuntu](https://askubuntu.com/revisions/1036473/1)). 1. Remove the binding on Prt Sc using the following command. ```shell gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]' ``` 2. Go to Settings > Device > Keyboard and press the '+' button at the bottom. 3. Name the command as you like it, e.g. `flameshot`. And in the command insert `/usr/bin/flameshot gui`. 4. Then click "_Set Shortcut.._" and press Prt Sc. This will show as "_print_". Now every time you press Prt Sc, it will start the Flameshot GUI instead of the default application. ## Considerations - Experimental Gnome Wayland and Plasma Wayland support. - If you are using Gnome you need to install the [Gnome Shell Extension Appindicator](https://github.com/Ubuntu/gnome-shell-extension-appindicator) extension in order to see the system tray icon. - Press Enter or Ctrl + C when you are in a capture mode and you don't have an active selection and the whole desktop will be copied to your clipboard. Pressing Ctrl + S will save your capture to a file. Check the [Shortcuts](#keyboard-shortcuts) for more information. - Flameshot works best with a desktop environment that includes D-Bus. See this [article](https://wiki.archlinux.org/index.php/Flameshot#Troubleshooting) for tips on using Flameshot in a minimal window manager (dwm, i3, xmonad, etc). - In order to speed up the first launch of Flameshot (D-Bus init of the app can be slow), consider starting the application automatically on boot. - Quick tip: If you don't have Flameshot to autostart at boot and you want to set keyboard shortcut, use the following as the command for the keybinding: ```sh ( flameshot &; ) && ( sleep 0.5s && flameshot gui ) ``` ## Installation Flameshot can be installed on Linux, Microsoft Windows, and macOS. ### Prebuilt packages Some prebuilt packages are provided on [the release page of the GitHub project repository](https://github.com/flameshot-org/flameshot/releases). ### Packages from Repository There are packages available in the repository of some Linux distributions: - [Arch](https://www.archlinux.org/packages/community/x86_64/flameshot/): `pacman -S flameshot` + Snapshot also available via AUR: [flameshot-git](https://aur.archlinux.org/packages/flameshot-git). - [Debian 10+](https://tracker.debian.org/pkg/flameshot): `apt install flameshot` + Package for Debian 9 ("Stretch") also [available via stretch-backports](https://backports.debian.org/). - [Ubuntu 18.04+](https://launchpad.net/ubuntu/+source/flameshot): `apt install flameshot` - [openSUSE](https://software.opensuse.org/package/flameshot) - [Void Linux](https://github.com/void-linux/void-packages/tree/master/srcpkgs/flameshot) (`xbps-install flameshot`) - [Solus](https://dev.getsol.us/source/flameshot/): `eopkg it flameshot` - Fedora: `dnf install flameshot` - [Snap/Flatpak/AppImage](https://github.com/flameshotapp/packages) - [Docker](https://github.com/ManuelLR/docker-flameshot) There are also options for installing on macOS: - [MacPorts](https://www.macports.org): `sudo port selfupdate && sudo port install flameshot`