diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..4a4726a5 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/README.md b/README.md index bc94f926..d47b7cd1 100755 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ You can also edit some of the settings (like overriding the default colors) in t Linux path : `~/.config/flameshot/flameshot.ini`.\ Windows path : `C:\Users\{YOURNAME}\AppData\Roaming\flameshot\flameshot.ini`. -When copying over the config file from Linux to Windows or vice versa, +When copying over the config file from Linux to Windows or vice versa, make sure to correct the `savePath` variable,\ so that the screenshots save in the right directory on your desired file system. @@ -279,15 +279,15 @@ To use Flameshot instead of the default screenshot application in Ubuntu we need ```shell gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]' ``` - + Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Screenshots_ > _Take a screenshot interactively_ and press `backspace` 2. Add custom binding on Prt Sc: - + Ubuntu 18.04: Go to _Settings_ > _Device_ > _Keyboard_ and press the '+' button at the bottom. - + Ubuntu 20.04: Go to _Settings_ > _Keyboard_ and press the '+' button at the bottom. - + Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Custom shortcuts_ 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`. @@ -359,8 +359,8 @@ There are packages available in the repository of some Linux distributions: **Note** that because of macOS security features, you may not be able to open flameshot when installed using brew. If you see the message `“flameshot” cannot be opened because the developer cannot be verified.` you will need to -follow the steps below: -1. Go to the Applications folder (Finder > Go > Applications, or Shift+Command+A) +follow the steps below: +1. Go to the Applications folder (Finder > Go > Applications, or Shift+Command+A) 1. Right-Click on "flameshot.app" and choose "Open" from the context menu 2. In the dialog click "Open" @@ -451,6 +451,12 @@ pacman -S qt5-svg pacman -S openssl ca-certificates ``` +#### NixOS + +```shell +nix-shell +``` + #### MacOS First of all you need to install [brew](https://brew.sh) and than install dependencies diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..57aff555 --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + cmake + qt5.full + qt5.qttools + qt5.qtsvg + ]; + buildInputs = [ pkgs.qt5.qtbase ]; +}