Giter VIP home page Giter VIP logo

printdialog's Introduction

printdialog

Print dialog. Bash and Zenity.

In my particular use case (linux desktop, Kyocera copier) I find the application print dialogs super-inconsistent. They don't seem to have been written/tested with the various features (folding, stapling, different sizes of paper) of a copier in mind. But printing from the command-line tends to be understandable and consistent. This is my own print dialog to avoid having to remember arcane lp arguments that pertain to my particular printer.

Zenity is kind of fun: easy, quick results.

Good Intentions (and perhaps some ill-advised ones as well!)

  • TODO: won't print multiple copies (to my Brother printer)
  • TODO: check return codes from dialogs and leave values unchanged when "cancel"
  • TODO: fill out wip features
  • DONE: optionally accept filename(s) as arguments to script
  • DONE: optionally accept printer name as argument to script
  • DONE: skip initial prompts for arguments provided
  • DONE: Utilities: e.g., round out a pdf to have a number of pages divisible by 4 (matching page size)
  • ABANDON: Presets / Utilities / Other offer numerals in first column for easy keyboard access? No: Auto filter by alpha is more intuitive.

Notes

https://github.com/dylanaraps/pure-bash-bible#arrays https://help.gnome.org/users/zenity/stable/ https://www.cups.org/doc/options.html Print from bypass tray: -o InputSlot=MF1 lpstat -v lpoptions -p "StT-Kyocera-TASKalfa-2552ci-(KPDL)" -l lpadmin -p ... -o ....

printdialog's People

Contributors

toddfoster avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.