sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1aaafa9dd11523b565ca7940b9acf1e677ee5cba
parent 369bd631d513a609e4ee99cf5df0cd6d8d7bccbe
Author: Wojciech Gac <wgac@wp.pl>
Date:   Tue, 31 May 2011 22:08:54 +0200

Typographical change (indentation)
Diffstat:
Mwmii.suckless.org/code_snippets/python/freebsd_battery_indicator.md | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wmii.suckless.org/code_snippets/python/freebsd_battery_indicator.md b/wmii.suckless.org/code_snippets/python/freebsd_battery_indicator.md @@ -13,7 +13,8 @@ This is a battery indicator written specifically for FreeBSD. FreeBSD has a simp @defmonitor def bsdbattery(self): a = commands.getoutput('acpiconf -i' + bat).splitlines() - b = dict([[i for i in j.split('\t') if i is not ''] for j in a]) + b = dict([[i for i in j.split('\t') if i is not ''] \ + for j in a]) return wmii.cache['normcolors'], 'Status: ' + b['State:'] +\ 'Capacity: ' + b['Remaining capacity:'] + ' ' +\ 'Time remaining: ' + b['Remaining time:'] \ No newline at end of file