1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/flameshot-once.nix

46 lines
995 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
lib,
pkgs,
...
}: let
2021-12-28 14:48:09 +01:00
inherit (import <niveum/lib>) defaultApplications;
2022-01-08 09:05:58 +01:00
flameshot-once =
pkgs.callPackage <stockholm/krebs/5pkgs/simple/flameshot-once> {};
2021-12-28 14:48:09 +01:00
in {
environment.systemPackages = [
(flameshot-once.override {
2022-01-01 13:23:56 +01:00
config = {
imgur = {
enable = true;
createUrl = "http://p.r/image";
deleteUrl = "http://p.r/image/delete/%1";
xdg-open.browser = (defaultApplications pkgs).browser;
};
timeout = 1000;
drawColor = "#ff0000";
drawThickness = 2;
showDesktopNotification = true;
buttons = [
"ARROW"
"BLUR"
"CIRCLE"
"CIRCLECOUNT"
"COPY"
"DRAWER"
"EXIT"
"IMAGEUPLOADER"
2022-01-01 13:23:56 +01:00
"MARKER"
"MOVESELECTION"
"PENCIL"
"RECTANGLE"
"SAVE"
"SELECTION"
"SELECTIONINDICATOR"
"TEXT"
"UNDO"
];
2020-06-04 13:28:49 +02:00
};
2021-12-28 14:48:09 +01:00
})
];
2020-06-02 23:02:21 +02:00
}