mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
164 current 2024-06-05 10:41:29 24.11.20240529.ad57eef 6.9.2-zen1 *
This commit is contained in:
parent
be1f3f0b91
commit
8bbdb16908
3 changed files with 14 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
flameshot = import ../../common/programs/flameshot.nix {inherit config;};
|
||||
_s1 = import ../../common/sops.nix { inherit config; };
|
||||
files = import ../../common/files.nix { inherit config; };
|
||||
shell = import ../../common/shell.nix { inherit config pkgs; };
|
||||
|
@ -53,13 +54,7 @@ nixpkgs.config.allowInsecurePredicate = (pkg: true);
|
|||
|
||||
|
||||
services = {
|
||||
flameshot = {
|
||||
enable = true;
|
||||
settings.General.showDesktopNotification = false;
|
||||
settings.General.startupLaunch = false;
|
||||
# settings.Shortcuts.TYPE_IMAGEUPLOADER = "";
|
||||
# settings.Shortcuts.TYPE_COPY = "Return";
|
||||
};
|
||||
inherit flameshot;
|
||||
};
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
|
|
|
@ -127,7 +127,7 @@ in
|
|||
set -euo pipefail
|
||||
TEMP=$(mktemp)
|
||||
flameshot gui -s -r > $TEMP
|
||||
(tesseract $TEMP - --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
||||
(tesseract $TEMP /dev/null --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
||||
'')
|
||||
];
|
||||
wsl = with pkgs;[
|
||||
|
|
11
common/programs/flameshot.nix
Normal file
11
common/programs/flameshot.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{config}: {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
savePath="/home/${config.home.username}/ss/";
|
||||
saveAsFileExtension=".png";
|
||||
showDesktopNotification=false;
|
||||
startupLaunch=true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue