]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - pkgs/muttprint/two_edge.patch
Move more packages to separate files
[perso/Immae/Config/Nix.git] / pkgs / muttprint / two_edge.patch
diff --git a/pkgs/muttprint/two_edge.patch b/pkgs/muttprint/two_edge.patch
new file mode 100644 (file)
index 0000000..4a7290d
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/muttprint        2016-05-05 13:48:50.515950744 +1200
++++ b/muttprint        2016-05-05 13:52:10.722623902 +1200
+@@ -643,14 +643,14 @@
+       if ($Config{PAPERSAVE} eq "on") {
+               if ($useCups) {
+                       $Config{PRINT_COMMAND} =~ 
+-                              s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/;
++                              s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/;
+               } else { # no cups
+                       modifyPS("landscape");
+               }
+       } else { # no papersave
+               if ($useCups) {
+                       $Config{PRINT_COMMAND} =~ 
+-                              s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/;
++                              s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/;
+               } else { # no cups
+                       modifyPS("portrait");
+               }