mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 06:59:41 +00:00
29 lines
671 B
Nix
29 lines
671 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";
|
|
};
|
|
};
|
|
};
|
|
}
|