Add flameshot

This commit is contained in:
Paul-Henri Froidmont 2023-03-28 18:35:58 +02:00
parent 2e5e3cba52
commit 24c8bf4587
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
7 changed files with 30 additions and 11 deletions

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.flameshot;
in {
options.modules.desktop.flameshot = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
home-manager.users.${config.user.name} = { config, ... }: {
services.flameshot = {
enable = true;
settings = {
General = {
showStartupLaunchMessage = false;
showHelp = false;
showDesktopNotification = false;
filenamePattern = "%F_%T";
savePath = "${config.home.homeDirectory}/Pictures/Screenshots";
saveAfterCopy = true;
uiColor = "#83A598";
};
};
};
};
};
}