While we're at it, some other PEP8 stuff.
[obama] Except too long lines, because big screens.
This commit is contained in:
parent
d63896d465
commit
cdbb2f3e36
17
.idea/misc.xml
generated
17
.idea/misc.xml
generated
@ -1,22 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.3.2 (/usr/bin/python3.3)" project-jdk-type="Python SDK" />
|
||||
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="all">
|
||||
<option name="USER" value="" />
|
||||
<option name="PASSWORD" value="" />
|
||||
<option name="mySSHConnectionTimeout" value="30000" />
|
||||
<option name="mySSHReadTimeout" value="30000" />
|
||||
<option name="LAST_MERGED_REVISION" />
|
||||
<option name="MERGE_DRY_RUN" value="false" />
|
||||
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
||||
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
||||
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
||||
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
||||
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
||||
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
||||
<option name="FORCE_UPDATE" value="false" />
|
||||
<option name="IGNORE_EXTERNALS" value="false" />
|
||||
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
||||
</component>
|
||||
</project>
|
||||
|
||||
|
@ -297,7 +297,7 @@ __Settings:__
|
||||
* `alert_format_title` — The title of the notification, all formatters can be used (default: `Low battery`)
|
||||
* `alert_format_body` — The body text of the notification, all formatters can be used (default: `Battery {battery_ident} has only {percentage:.2f}% ({remaining:%E%hh:%Mm}) remaining!`)
|
||||
* `path` — Override the default-generated path (default: `None`)
|
||||
* `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'FULL': 'FULL', 'DIS': 'DIS', 'CHR': 'CHR'}`)
|
||||
* `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'DIS': 'DIS', 'CHR': 'CHR', 'FULL': 'FULL'}`)
|
||||
|
||||
|
||||
|
||||
@ -503,7 +503,7 @@ __Settings:__
|
||||
* `host` — (default: `localhost`)
|
||||
* `port` — MPD port (default: `6600`)
|
||||
* `format` — formatp string (default: `{title} {status}`)
|
||||
* `status` — Dictionary mapping pause, play and stop to output (default: `{'pause': '▷', 'stop': '◾', 'play': '▶'}`)
|
||||
* `status` — Dictionary mapping pause, play and stop to output (default: `{'stop': '◾', 'play': '▶', 'pause': '▷'}`)
|
||||
|
||||
|
||||
|
||||
|
@ -1,11 +1,15 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os, locale, datetime
|
||||
import os
|
||||
import locale
|
||||
import datetime
|
||||
|
||||
from i3pystatus import IntervalModule
|
||||
|
||||
|
||||
class Clock(IntervalModule):
|
||||
|
||||
"""
|
||||
This class shows a clock
|
||||
"""
|
||||
|
@ -23,8 +23,6 @@ class Disk(IntervalModule):
|
||||
divisor = 1024 ** 3
|
||||
|
||||
def run(self):
|
||||
cdict = {}
|
||||
|
||||
stat = os.statvfs(self.path)
|
||||
cdict = {
|
||||
"total": (stat.f_bsize * stat.f_blocks) / self.divisor,
|
||||
|
@ -3,6 +3,7 @@ from psutil import virtual_memory
|
||||
|
||||
MEGABYTE = 1024**2
|
||||
|
||||
|
||||
class Mem(IntervalModule):
|
||||
"""
|
||||
Shows memory load
|
||||
|
Loading…
Reference in New Issue
Block a user