mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
swappy: add module
This commit is contained in:
parent
f3d3b4592a
commit
1a6f6fb409
4 changed files with 108 additions and 0 deletions
14
tests/modules/programs/swappy/config
Normal file
14
tests/modules/programs/swappy/config
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Default]
|
||||
auto_save=false
|
||||
custom_color=rgba(193,125,17,1)
|
||||
early_exit=false
|
||||
fill_shape=false
|
||||
line_size=5
|
||||
paint_mode=brush
|
||||
save_dir=$HOME/Desktop
|
||||
save_filename_format=swappy-%Y%m%d-%H%M%S.png
|
||||
show_panel=false
|
||||
text_font=sans-serif
|
||||
text_size=20
|
||||
transparency=50
|
||||
transparent=false
|
||||
5
tests/modules/programs/swappy/default.nix
Normal file
5
tests/modules/programs/swappy/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
(lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
swappy-example-config = ./example-config.nix;
|
||||
})
|
||||
28
tests/modules/programs/swappy/example-config.nix
Normal file
28
tests/modules/programs/swappy/example-config.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
programs.swappy = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Default = {
|
||||
save_dir = "$HOME/Desktop";
|
||||
save_filename_format = "swappy-%Y%m%d-%H%M%S.png";
|
||||
show_panel = false;
|
||||
line_size = 5;
|
||||
text_size = 20;
|
||||
text_font = "sans-serif";
|
||||
paint_mode = "brush";
|
||||
early_exit = false;
|
||||
fill_shape = false;
|
||||
auto_save = false;
|
||||
custom_color = "rgba(193,125,17,1)";
|
||||
transparent = false;
|
||||
transparency = 50;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/swappy/config
|
||||
assertFileContent home-files/.config/swappy/config \
|
||||
${./config}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue