2024-06-24 20:08:46 +00:00
|
|
|
# Swappy is an application for quick screenshot editing
|
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
osConfig,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
in {
|
|
|
|
config = mkIf osConfig.myOptions.home-manager.wms.isWayland {
|
2024-07-26 23:07:07 +00:00
|
|
|
home.packages = with pkgs; [swappy];
|
2024-06-24 20:08:46 +00:00
|
|
|
|
|
|
|
xdg.configFile."swappy/config".text = lib.generators.toINI {} {
|
2024-06-24 21:57:00 +00:00
|
|
|
Default = {
|
2024-06-24 20:08:46 +00:00
|
|
|
save_dir = "${config.xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR}";
|
|
|
|
save_filename_format = "Screenshot_%Y-%M-%d_%H-%M-%S.png";
|
|
|
|
show_panel = false;
|
|
|
|
line_size = 5;
|
|
|
|
text_size = 20;
|
|
|
|
text_font = "JetBrains Mono";
|
|
|
|
early_exit = true;
|
|
|
|
paint_mode = "rectangle";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|