~ruther/nixos-config

ref: 5d1df69fa095c70b43fe962ad143c4d02d2d9295 nixos-config/modules/services/flameshot.nix -rw-r--r-- 696 bytes
5d1df69f — Frantisek Bohacek feat(emacs): add matlab-mode 1 year, 4 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