aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop/flameshot.nix
blob: d86ee371b439b4ab92e8c32b69f29b9b4087c50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ config, pkgs, ... }:

{
  services.flameshot = {
    package = pkgs.flameshot.override {
      enableWlrSupport = true;
    };

    settings = let c = config.theme.colors; in {
      General = {
        savePath = "Pictures/Screenshots";
        filenamePattern = "%F_%T";

        saveAfterCopy = true;

        uiColor = "#${c.bg}";
        contrastUiColor = "#${c.accent}";

        startupLaunch = false;
      };
    };
  };

  #TODO: relocate. target.tray required for flameshot
  systemd.user.targets.tray = {
    Unit = {
      Description = "Home Manager System Tray";
      Requires = [ "graphical-session-pre.target" ];
    };
  };
}