summaryrefslogtreecommitdiff
path: root/.local/bin/dmenuprint
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:52:36 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:52:36 -0500
commitbf434758d9c60c323d571bc1e2e329edaad06fa3 (patch)
treec7cdaaba012b4560d49aaadc5e588c9563348214 /.local/bin/dmenuprint
parenta0cab8cd1a13e665ee83efecf37fa8cf87bf2c46 (diff)
More debloating
Diffstat (limited to '.local/bin/dmenuprint')
-rwxr-xr-x.local/bin/dmenuprint11
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" "$@"