mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-27 11:44:33 +00:00
28 lines
668 B
Nix
28 lines
668 B
Nix
# 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 {
|
|
home.packages = with pkgs; [swappy];
|
|
|
|
xdg.configFile."swappy/config".text = lib.generators.toINI {} {
|
|
Default = {
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|