diff options
Diffstat (limited to '.local/bin/dmenuprint')
-rwxr-xr-x | .local/bin/dmenuprint | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/.local/bin/dmenuprint b/.local/bin/dmenuprint index cfcd179..469c8a3 100755 --- a/.local/bin/dmenuprint +++ b/.local/bin/dmenuprint @@ -4,12 +4,7 @@ choice="$(lpstat -p -d | sed 's/.*default.*//g; s/[^ ]* //; s/is\sidle.//g s/.*disabled.*//g' | - dmenu -p "Which printer?" | - sed 's/\s.*//g' )" + dmenu -p "Which printer?" | + sed 's/\s.*//g')" -lpr -P $choice "$@" - -# printer Canon_iP110_series is idle. enabled since Tue 10 Nov 2020 04:22:34 PM -# printer HP_OfficeJet_Pro_9010 is idle. enabled since Wed 09 Dec 2020 01:57:06 AM -# printer HP_OfficeJet_Pro_9010_fax is idle. enabled since Tue 27 Oct 2020 08:40:56 PM -# system default destination: HP_OfficeJet_Pro_9010 +lpr -P "$choice" "$@" |