一个awesome的battery widget

之前有一个基于ruby的awesome的类库amazing我一直配置不能,这让我很郁闷,于是我用bash+awesome-client+zenity写了一个battery的widget,看起来效果是这样的:

battery widget

同时我还给我的clock和battery用zenity加了鼠标点击事件,zenity真不错

有时间的话打算在使用AC的时候显示个插座,只有在使用电池的时候才使用battery icon更新版的awesome battery widget,支持电源多种状态的显示,包括charged、discharging、charging等等,包括icon旁边电量的显示

以后还可以考虑加上低电量的alarm,作为一个widget就圆满了,不过awesome-client支持向wm推送消息吗?我决定有时间一定用pygtk/wxPython改写成trayer上的applet,就像volwheel一样:D还是考虑直接upgrade到awesome3?

bash把我写恶心了,我好弱阿@_o,用了好多pipe+乱七八糟的小命令,我想我要是会sed就好了,或者是不是该用python呢?

还有不得不说awesome设计的真好,awesome-client让人感觉世界美好多了,怎么以前用gnome、xfce没感觉到呢lol

Tags: ,

这个是什么?介绍一下 :)

呃,awesome(http://awesome.naquadah.org/)是一个X11下的tiling wm,这是一个简单的能显示当前电池电量的awesome用的widget,呵呵:)

syhan现在在哪里呀

偶现在在上海了:)

If they are linking from the comment, I would consider it spam. If they post a comment, and it is on topic, be glad someone saw your blog and thought enough to post to it. mirc .

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Powered by WP Hashcash

10557 pages viewed, 26 today
5143 visits, 19 today
FireStats icon Powered by FireStats