mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 06:24:33 +00:00
Add swappy config
This commit is contained in:
parent
75ed5ed91c
commit
ccc5cbe1d4
|
@ -1,5 +1,5 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./wayland.nix
|
./wayland
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
6
home/packages/gui/wayland/default.nix
Normal file
6
home/packages/gui/wayland/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./swappy.nix
|
||||||
|
./wlogout.nix
|
||||||
|
];
|
||||||
|
}
|
28
home/packages/gui/wayland/swappy.nix
Normal file
28
home/packages/gui/wayland/swappy.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,9 +8,8 @@
|
||||||
|
|
||||||
in {
|
in {
|
||||||
config = mkIf osConfig.myOptions.home-manager.wms.isWayland {
|
config = mkIf osConfig.myOptions.home-manager.wms.isWayland {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ wlogout ];
|
||||||
wlogout # logout menu
|
|
||||||
swappy # screenshot editing
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue