Swappy: Remove tab trim from the patch.

This commit is contained in:
Dmitry Voronin 2024-11-23 07:29:35 +03:00
parent 8bfcebcd27
commit 8e5843f1c3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 2 additions and 4 deletions

View file

@ -2,7 +2,6 @@
__findFile, __findFile,
config, config,
pkgs, pkgs,
util,
... ...
} @args: { } @args: {
# SEE: https://github.com/jtheoof/swappy/issues/131 # SEE: https://github.com/jtheoof/swappy/issues/131

View file

@ -1,7 +1,6 @@
{ {
config, config,
pkgs, pkgs,
util,
... ...
}: let }: let
color = config.module.style.color; color = config.module.style.color;
@ -9,7 +8,7 @@
accentG = color.accent-dec-g; accentG = color.accent-dec-g;
accentB = color.accent-dec-b; accentB = color.accent-dec-b;
in { in {
file = pkgs.writeText "SwappyDefaultColorPatch" (util.trimTabs '' file = pkgs.writeText "SwappyDefaultColorPatch" ''
diff --git a/src/application.c b/src/application.c diff --git a/src/application.c b/src/application.c
index 5b98590..86788b6 100644 index 5b98590..86788b6 100644
--- a/src/application.c --- a/src/application.c
@ -27,5 +26,5 @@ index 5b98590..86788b6 100644
state->settings.a = 1; state->settings.a = 1;
state->settings.w = state->config->line_size; state->settings.w = state->config->line_size;
state->settings.t = state->config->text_size; state->settings.t = state->config->text_size;
''); '';
} }