这是交易:我使用 lastfm 包来收听我的 Last.FM (duh)...并且我想在新音乐开始时显示一些 notify-osd 通知。
只要程序不支持它,我就想创建一个 shell 脚本来监控 lastfm 播放器的窗口标题,并在它发生变化时发送通知。
你怎么看?我该如何开始?
这是交易:我使用 lastfm 包来收听我的 Last.FM (duh)...并且我想在新音乐开始时显示一些 notify-osd 通知。
只要程序不支持它,我就想创建一个 shell 脚本来监控 lastfm 播放器的窗口标题,并在它发生变化时发送通知。
你怎么看?我该如何开始?
我有一个CardScan 60 II设备并在我的 Ubuntu 10.10 笔记本电脑上安装了SANE 。
问题是我无法scanimage
找到设备。
引用:
$ sudo sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x08f0 [Corex Technologies Corporation], product=0x1000 [Corex CardScan 60], chip=LM9832/3) at libusb:006:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
但我找不到设备:
$ sudo scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).