aboutsummaryrefslogtreecommitdiff
path: root/patches/muttprint_two_edge.patch
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-10 14:02:46 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-10 14:02:46 +0100
commit3b96c7ee3570583c298cf89c22934467da24aa0c (patch)
treec03439e7801d06bba496b809934a51f0fc2ff22a /patches/muttprint_two_edge.patch
parente01535ee6ea3d756528aab1b4ca454a2002daf9c (diff)
downloadNix-3b96c7ee3570583c298cf89c22934467da24aa0c.tar.gz
Nix-3b96c7ee3570583c298cf89c22934467da24aa0c.tar.zst
Nix-3b96c7ee3570583c298cf89c22934467da24aa0c.zip
Add muttprint
Diffstat (limited to 'patches/muttprint_two_edge.patch')
-rw-r--r--patches/muttprint_two_edge.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/muttprint_two_edge.patch b/patches/muttprint_two_edge.patch
new file mode 100644
index 0000000..4a7290d
--- /dev/null
+++ b/patches/muttprint_two_edge.patch
@@ -0,0 +1,19 @@
1--- a/muttprint 2016-05-05 13:48:50.515950744 +1200
2+++ b/muttprint 2016-05-05 13:52:10.722623902 +1200
3@@ -643,14 +643,14 @@
4 if ($Config{PAPERSAVE} eq "on") {
5 if ($useCups) {
6 $Config{PRINT_COMMAND} =~
7- s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/;
8+ s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/;
9 } else { # no cups
10 modifyPS("landscape");
11 }
12 } else { # no papersave
13 if ($useCups) {
14 $Config{PRINT_COMMAND} =~
15- s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/;
16+ s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/;
17 } else { # no cups
18 modifyPS("portrait");
19 }