Flameshot options

Flameshot is such a great tool.
I’m having trouble finding a list of configurable options, other than the few short examples such as -

services.flameshot = {
        enable = true;
        settings.General = { showStartupLaunchMessage = false; };

What I’m really after is just one - to set ‘Use last region’ to true.
Every time I restart, I need to tick this box so it’s a minor annoyance.

Can anyone help out here?

1 Like

The following should work:

  services.flameshot = {
    enable = true;
    settings.General = {
      showStartupLaunchMessage = false;
      saveLastRegion = true;
    };
  };

Home-manager links to flameshot.example.ini for more options, but saveLastRegion isn’t listed there.

To find it, I installed flameshot without the flameshot.settings attribute, changed it manually in the program and then examined the config file under ~/.config/flameshot/flameshot.ini.

In cases like this, it’s generally better to configure the program normally and when you’re comfortable with the results, you can then transform it into a nix expression.

4 Likes

oh great. thanks for this.
I did try your process but neglected to add without the flameshot.settings attribute.
Thank you, should be good after a reboot now

1 Like