This is based on two programs (included):
Ink - http://ink.sourceforge.net/
Libinklevel - http://libinklevel.sourceforge.net/ (supported/unsupported printers listed here)
To have the script look at the parallel port open /usr/bin/inkgui in a text editor and change "usb" to "parport"
Code: Select all
#!/bin/sh
# Program to display inklevel
ink -p usb > /tmp/inklevel
gxmessage -file /tmp/inklevel -title "Ink Level"
rm /tmp/inklevel
There is a menu entry under "System" called "InkGUI"
JB
P.S. There are probably better ways to do this so input is welcome.