Skip to content

Instantly share code, notes, and snippets.

@YeapGuy
YeapGuy / hp-virtual.sh
Last active May 2, 2026 21:02 — forked from ParsaAlizadeh/env-wrapper.sh
Virtual printer for manually printing two sided
#!/bin/bash
# Place this file at /usr/lib/cups/hp-virtual, chown root:root and chmod 0744.
if [[ $# -eq 0 ]]; then
echo 'file hp-virtual:/ "HP Virtual Printer" "HP Virtual Printer"'
exit 0
fi
JOBID="$1"
USER="$2"