* Andreas Kalex <andreas.ka...@gmx.de> [07-12-10 07:54]: > > I'm using muttprint to print my mails. I have two printers, normally I > use a HP 690C to print them, but sometimes i want to print on the other. > So I changed the shell, edit .muttprintrc and set/delete the comment sign > were it is needed. > PRINTER="HP-Deskjet-690c" > # PRINTER="Samsung-CLP-510" > or vice versa. > > Is there a way to do it interactiv, or with a macro for each printer?
remove the printer selection completely from ~/.muttprintrc and call your print command with an additional ~/.muttprint1rc and ~/.muttprint2rc containing the desired 'PRINTER' from a macro or keycombination: muttprint -C ~/.muttprint1rc muttprint -C /.muttprint2rc .muttprint1rc PRINTER="HP-Deskjet-690c" .muttprint2rc PRINTER="Samsung-CLP-510" muttrpint --help ... -C [print command], --printcommand [print command] Sets the printing command. "$PRINTER" is substituted by the printer name. CUPS support is turned on by "CUPS" (or set it to any command which containes the string "$CUPS_OPTIONS"). ... -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org