diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2021-01-07 21:46:47 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2021-01-07 21:46:47 -0500 |
commit | 4a73f6b7c560a53a7f6fe3bff54a06671fea6109 (patch) | |
tree | ff9cbb37b1f41f2d50d4510a6ed5f9ddf560719d /.local/bin/dmenuprint | |
parent | 4dc06b2e8d8cfc5a363555a8ae7bc1f7aac2d7e9 (diff) |
linkhandler uses mpv with the sponsorblock plugin
Diffstat (limited to '.local/bin/dmenuprint')
-rwxr-xr-x | .local/bin/dmenuprint | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.local/bin/dmenuprint b/.local/bin/dmenuprint new file mode 100755 index 0000000..cfcd179 --- /dev/null +++ b/.local/bin/dmenuprint @@ -0,0 +1,15 @@ +#!/bin/sh + +choice="$(lpstat -p -d | sed 's/.*default.*//g; + s/[^ ]* //; + s/is\sidle.//g + s/.*disabled.*//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 |