~ruther/nixos-config

ref: 39ae21041f41de8d504676360aef7760872d1efd nixos-config/modules/services/flameshot.nix -rw-r--r-- 696 bytes
39ae2104 — Rutherther chore: minor fixes 1 year, 6 months ago
                                                                                
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
#
# Screenshots
#

{ config, lib, pkgs, user, ... }:

let
  screensDir = "/home/${user}/screens";
in {
  services = {                                    # sxhkd shortcut = Printscreen button (Print)
    flameshot = {
      enable = true;
      settings = {
        General = {                               # Settings
          savePath = screensDir;
          saveAsFileExtension = ".png";
          uiColor = "#2d0096";
          showHelp = "false";
          disabledTrayIcon = "true";              # Hide from systray
        };
      };
    };
  };

  home.activation = {
    ensureScreensDirCreated = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
      mkdir -p ${screensDir}
    '';
  };
}
Do not follow this link