2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.programs.clipse;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
|
|
|
options.custom.programs.clipse.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
# https://github.com/savedra1/clipse
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
clipse
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
# https://github.com/savedra1/clipse?tab=readme-ov-file#configuration
|
2024-11-17 23:27:14 +00:00
|
|
|
xdg.configFile."clipse/config.json".text = ''
|
2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
"historyFile": "clipboard_history.json",
|
2024-10-22 12:45:55 +00:00
|
|
|
"maxHistory": 50,
|
2024-09-09 00:22:14 +00:00
|
|
|
"allowDuplicates": false,
|
|
|
|
"themeFile": "custom_theme.json",
|
|
|
|
"tempDir": "tmp_files",
|
2024-10-22 12:45:55 +00:00
|
|
|
"logFile": "clipse.log",
|
|
|
|
"imageDisplay": {
|
|
|
|
"type": "kitty",
|
|
|
|
"scaleX": 9,
|
|
|
|
"scaleY": 9,
|
|
|
|
"heightCut": 2
|
|
|
|
}
|
2024-09-09 00:22:14 +00:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|