File: pydfrc

package info (click to toggle)
pydf 1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 68 kB
  • ctags: 46
  • sloc: python: 326; makefile: 38
file content (110 lines) | stat: -rw-r--r-- 2,767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Configuration file for pydf
#
#
# colours can be: 
#  'none'    - no change from previous colour
#  'default' - default system colour
#
# special attributes:
#  'bold'
#  'underline'
#  'blink'
#  'reverse'
#  'concealed'
#
# foreground:
#  'black'
#  'red'
#  'green'
#  'yellow'
#  'blue'
#  'magenta'
#  'cyan'
#  'white'
#
# background:
#  'on_black'
#  'on_red'
#  'on_green'
#  'on_yellow'
#  'on_blue'
#  'on_magenta'
#  'on_cyan'
#  'on_white'
#
# beep:
#  'beep'
#
#
# or any combination of these, separated with commas


# normal text colour - currently not used
normal_colour = 'default'

# colour of the header
header_colour = 'yellow'

# colour for local filesystems
local_fs_colour = 'default'

# colour for remote filesystems (such as nfs, samba, afs....)
remote_fs_colour = 'green'

# colour for special filesystems (such as proc, pty)
special_fs_colour = 'blue'

# colour for readonly mounted filesystems
readonly_fs_colour = 'cyan'

# colour for filesystems with usage > FILL_THRESH
filled_fs_colour = 'red'

# colour for filesystems with usage > FULL_THRESH
full_fs_colour = 'on_red', 'green', 'blink'

# default format for displaying sizes "-h" or "-H" or "-m" or "-k" or "--blocks"
sizeformat = "-h"

# filesystem filled up over this limit (in percents) is displayed
# with filled_fs_colour (to show it is dangerously filled up)
FILL_THRESH = 95.0

# filesystem filled up over this limit is displayed with 
# full_fs_colour (to show it is FULL)
FULL_THRESH = 99.0

# Format used to display information: (keyword, size, justify).
# keyword - one of 'fs' 'fstype' 'size' 'used' 'avail' 'perc' 'bar' 'on'.
# size - if 'size' is integer, it is a column width of the entry
#        if 'size' is float, it is a column width in percent of screen width
# 
# justify is either "l" for left justify, "r" for right justify or "c" for 
# center.
# You can use any order and any combination of keywords, but
# be careful not to exceed the size of your screen


#format = [    
#            ('fs', 15, "l"), ('size', 9, "r"), 
#            ('used', 9, "r"), ('avail', 9, "r"), ('perc', 5, "r"),
#            ('bar', 8, "l"), ('on', 16, "l")
#         ]

# this is somewhat conservative
# use fixed width for numbers, since you want them readable
# and the rest starts wrapping the lines at screens smaller than about 52 columns 
format = [    
            ('fs', 0.2, "l"), ('size', 6, "r"), 
            ('used', 6, "r"), ('avail', 6, "r"), ('perc', 5, "r"),
            ('bar', 0.1, "l"), ('on', 0.2, "l")
         ]


# character to display filesystem size bar
barchar = '#'

# list of files to try to get mount information from
# on normal linux system, only /etc/mtab or /proc/mounts make sense
mountfile = ['/etc/mtab', '/etc/mnttab', '/proc/mounts']