summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-02 03:07:34 +0000
committertv <tv@krebsco.de>2026-12-02 03:07:34 +0000
commit41540f13a300834ddba0e0ef708ee493c86c5092 (patch)
tree1adf15b5c9d1f0e116cd9b95a6d19d02742a3248 /pkgs
parent42b706d006db78d1fe1bda0cf1829e29a549f878 (diff)
flameshot-once: add the settings and shortcuts it lacked
Those flameshot knows on Linux that config.nix didn't declare, but buttons: drawCircleCounterSize, drawMarkerSize, drawPixelateSize, drawRectangleSize, insecurePixelate, jpegQuality, reverseArrow, showAbortNotification, showQuitPrompt, uiLanguage, and the shortcuts TYPE_CANCEL and TYPE_GRAB_COLOR. Descriptions as flameshot.example.ini has them.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/simple/flameshot-once/config.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/simple/flameshot-once/config.nix b/pkgs/simple/flameshot-once/config.nix
index 47301314..2d8a9dc7 100644
--- a/pkgs/simple/flameshot-once/config.nix
+++ b/pkgs/simple/flameshot-once/config.nix
@@ -115,6 +115,12 @@
'';
type = lib.types.nullOr lib.types.bool;
};
+ drawCircleCounterSize = lib.mkOption {
+ description = ''
+ Last used Circle Counter size
+ '';
+ type = lib.types.nullOr mylib.types.positive;
+ };
drawColor = lib.mkOption {
description = ''
Last used color
@@ -124,6 +130,24 @@
drawFontSize = lib.mkOption {
type = lib.types.nullOr mylib.types.positive;
};
+ drawMarkerSize = lib.mkOption {
+ description = ''
+ Last used Marker size
+ '';
+ type = lib.types.nullOr mylib.types.positive;
+ };
+ drawPixelateSize = lib.mkOption {
+ description = ''
+ Last used Pixelate pixel size
+ '';
+ type = lib.types.nullOr mylib.types.positive;
+ };
+ drawRectangleSize = lib.mkOption {
+ description = ''
+ Last used size for Rectangle rounded corners
+ '';
+ type = lib.types.nullOr mylib.types.positive;
+ };
drawThickness = lib.mkOption {
description = ''
Last used tool thickness
@@ -153,6 +177,15 @@
'';
type = lib.types.nullOr lib.types.str;
};
+ insecurePixelate = lib.mkOption {
+ type = lib.types.nullOr lib.types.bool;
+ };
+ jpegQuality = lib.mkOption {
+ description = ''
+ Set JPEG Quality
+ '';
+ type = lib.types.nullOr (mylib.types.boundedInt 0 100);
+ };
keepOpenAppLauncher = lib.mkOption {
description = ''
Keep the App Launcher open after selecting an app
@@ -165,6 +198,9 @@
'';
type = lib.types.nullOr lib.types.bool;
};
+ reverseArrow = lib.mkOption {
+ type = lib.types.nullOr lib.types.bool;
+ };
saveAfterCopy = lib.mkOption {
description = ''
Save image after copy
@@ -196,6 +232,12 @@
'';
type = lib.types.nullOr lib.types.bool;
};
+ showAbortNotification = lib.mkOption {
+ description = ''
+ Show abort notifications
+ '';
+ type = lib.types.nullOr lib.types.bool;
+ };
showDesktopNotification = lib.mkOption {
description = ''
Show desktop notifications
@@ -211,6 +253,9 @@
showMagnifier = lib.mkOption {
type = lib.types.nullOr lib.types.bool;
};
+ showQuitPrompt = lib.mkOption {
+ type = lib.types.nullOr lib.types.bool;
+ };
showSelectionGeometry = lib.mkOption {
type = lib.types.nullOr (mylib.types.boundedInt 0 5);
};
@@ -241,6 +286,12 @@
'';
type = lib.types.nullOr mylib.types.flameshot.color;
};
+ uiLanguage = lib.mkOption {
+ description = ''
+ UI language (auto = detected system language)
+ '';
+ type = lib.types.nullOr lib.types.str;
+ };
undoLimit = lib.mkOption {
type = lib.types.nullOr (mylib.types.boundedInt 0 999);
};
@@ -295,6 +346,7 @@
# nix-shell -p flameshot-once.dev --run get-Shortcuts
"TYPE_ACCEPT"
"TYPE_ARROW"
+ "TYPE_CANCEL"
"TYPE_CIRCLE"
"TYPE_CIRCLECOUNT"
"TYPE_CLOSE_ACTIVE_PIN_WINDOW"
@@ -303,6 +355,7 @@
"TYPE_DELETE_CURRENT_TOOL"
"TYPE_DRAWER"
"TYPE_EXIT"
+ "TYPE_GRAB_COLOR"
"TYPE_IMAGEUPLOADER"
"TYPE_INVERT"
"TYPE_MARKER"