~ruther/nixos-config

ref: ecaeae892cbf4ea12e4becf4014436b59fbb763f nixos-config/modules/services/flameshot.nix -rw-r--r-- 639 bytes
ecaeae89 — Rutherther feat: add syncting service 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
#
# Screenshots
#

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

{
  config = lib.mkIf (config.xsession.enable) {    # Only evaluate code if using X11
    services = {                                    # sxhkd shortcut = Printscreen button (Print)
      flameshot = {
        enable = true;
        settings = {
          General = {                               # Settings
            savePath = "/home/${user}/screens";
            saveAsFileExtension = ".png";
            uiColor = "#2d0096";
            showHelp = "false";
            disabledTrayIcon = "true";              # Hide from systray
          };
        };
      };
    };
  };
}
Do not follow this link