以前只知道用 Alltray 可以把程序最小化到托盘,不过在 Alltray 莫名奇妙地失效之后,只好上网寻找解决方法,Alltray 的问题没有解决,却意外发现了 KDocker 这个程序,于是有了下文。
Alltray:Dock any program into the system tray
With AllTray you can dock any application with no native tray icon
(like Evolution, Thunderbird, Terminals) into the system tray.
A high-light feature is that a click on the "close" button
will minimize back to system tray. It works well with Gnome,
KDE, XFCE 4*, Fluxbox* and WindowMaker*.
(*) No drag 'n drop support. Enable with "-nm" option.
KDocker:minimize any application to the system tray
KDocker will help you dock any application into the system tray.
This means you can dock openoffice, xmms, firefox, thunderbird,
anything! Just point and click. Works for all NET WM compliant
window managers - that includes KDE, GNOME, Xfce, Fluxbox and
many more.
以上的说明来自很强很大的新立得,所以两个软件都可以 apt-get 来搞掂,再来看看两者的选项。
Alltray:
-i --icon
Use a PNG image as an icon.
使用自定义的PNG图片作为托盘程序图标
-st --sticky
visible on all workspaces.
在所有工作区可见
-stask --skip-taskbar
not visible in taskbar.
在任务栏不可见
-na --no-alltray
no "(Alltray)" in window title.
标题位置不标明“(Alltray)”字样
-t --title
Show title change for <sec> seconds. Probably most usefull for xmms.
标题改变时提示 <sec> 秒(源中的Alltray有Bug,不会提示)
--------------------SPLIT--------------------
KDocker:
-i icon
Custom dock icon.
使用自定义图片作为托盘程序图标
-p secs
By default, when the title of the application changes,
it is ballooned from the system tray for 4 seconds.
Works excellently with xmms.
标题改变时提示的秒数,默认提示4秒
-q
Disable ballooning title changes (quiet).
标题改变时不再提示
-t
Remove this application from the task bar.
在任务栏不可见
这样,写脚本的时候可以用到,平时打开程序也可以用到,故记下。
转载请注明,文章转载自:
博客: iCyOMiK 链接: http://blog.icyomik.tk/2010-11-21/130001