Groups
Groups
Sign in
Groups
Groups
Northwest Arkansas Linux Users Group
Conversations
About
Send feedback
Help
Zsh right prompt acpi battery status python script.
163 views
Skip to first unread message
JKse
unread,
Jul 12, 2011, 5:05:00 PM
7/12/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Northwest Arkansas Linux Users Group
A while back I came across this awesome post
http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
which
introduced me to oh-my-zsh and described a very neat way to put
battery status on the right prompt for those using a Macbook.
The script used Apple Battery Status to get information. This will not
work in Linux. Luckily /proc/acpi/battery has all the information we
need.
I googled around and found this python code that I could use to
combine these two scripts .
http://www.masnun.me/2010/09/01/python-script-to-monitor-laptop-battery-charge-ubuntulinux-mint.html
The resulting work requires(maybe?) oh-my-zsh
https://github.com/robbyrussell/oh-my-zsh
and python to out put battery status of your laptop(?) on your
terminals right prompt.
Please checkout and of course modify to your hearts content.
git://
gitorious.org/zsh-battery-status/zsh-battery-status.git
Reply all
Reply to author
Forward
0 new messages