Add swappy config

This commit is contained in:
ItsDrike 2024-06-24 22:08:46 +02:00
parent 75ed5ed91c
commit ccc5cbe1d4
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 38 additions and 5 deletions

View file

@ -1,5 +1,5 @@
_: {
imports = [
./wayland.nix
./wayland
];
}

View file

@ -0,0 +1,6 @@
{
imports = [
./swappy.nix
./wlogout.nix
];
}

View file

@ -0,0 +1,28 @@
# 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 {} {
General = {
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";
};
};
};
}

View file

@ -8,9 +8,8 @@
in {
config = mkIf osConfig.myOptions.home-manager.wms.isWayland {
home.packages = with pkgs; [
wlogout # logout menu
swappy # screenshot editing
];
home.packages = with pkgs; [ wlogout ];
};
}