flameshot-once profile: use toINI
This commit is contained in:
parent
250fef7533
commit
8fdd9b3a8f
@ -1,5 +1,6 @@
|
|||||||
{ config, pkgs }:
|
{ config, pkgs }:
|
||||||
with pkgs.stockholm.lib;
|
with pkgs.stockholm.lib;
|
||||||
|
with generators;
|
||||||
let
|
let
|
||||||
|
|
||||||
# Refs https://github.com/lupoDharkael/flameshot/blob/master/src/widgets/capture/capturebutton.h
|
# Refs https://github.com/lupoDharkael/flameshot/blob/master/src/widgets/capture/capturebutton.h
|
||||||
@ -159,18 +160,21 @@ let
|
|||||||
"QList<${t}>${le.x4 0}${le.x4 (length xs)}${concatMapStrings le.x4 xs}";
|
"QList<${t}>${le.x4 0}${le.x4 (length xs)}${concatMapStrings le.x4 xs}";
|
||||||
|
|
||||||
XDG_CONFIG_HOME = pkgs.write "flameshot-config" {
|
XDG_CONFIG_HOME = pkgs.write "flameshot-config" {
|
||||||
"/flameshot/flameshot.ini".text = ''
|
"/flameshot/flameshot.ini".text =
|
||||||
[General]
|
toINI {} {
|
||||||
buttons=@Variant(\0\0\0\x7f\0\0\0\v${toQList "int" cfg.buttons})
|
General = {
|
||||||
disabledTrayIcon=${toJSON cfg.disabledTrayIcon}
|
buttons = ''@Variant(\0\0\0\x7f\0\0\0\v${toQList "int" cfg.buttons})'';
|
||||||
drawThickness=${toJSON cfg.drawThickness}
|
disabledTrayIcon = cfg.disabledTrayIcon;
|
||||||
filenamePattern=${toJSON cfg.filenamePattern}
|
drawThickness = cfg.drawThickness;
|
||||||
savePath=${toJSON cfg.savePath}
|
filenamePattern = cfg.filenamePattern;
|
||||||
showDesktopNotification=${toJSON cfg.showDesktopNotification}
|
savePath = cfg.savePath;
|
||||||
showHelp=${toJSON cfg.showHelp}
|
showDesktopNotification = cfg.showDesktopNotification;
|
||||||
[Shortcuts]
|
showHelp = cfg.showHelp;
|
||||||
TYPE_COPY=Return
|
};
|
||||||
'';
|
Shortcuts = {
|
||||||
|
TYPE_COPY = "Return";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user