forked from garabik/pydf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pydfrc
139 lines (111 loc) · 3.44 KB
/
pydfrc
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# 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 - used to switch to after one row is displayed
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'
# custom device names - not implemented yet
#custom_devices_colour = {
# '/dev/loop' : ('green', 'blink')
#}
# default format for displaying sizes "-h" or "-H" or "-m" or "-k" or "--blocks"
sizeformat = "-g"
# string used to separace columns in the table
column_separator = ' '
# colour of the string
column_separator_colour = 'none'
# if the screen is wider than necessary, stretch the bar:
# 0 - do not stretch
# 1 - stretch to fill the whole screen
# real number in between - stretch by this ratio of free space
stretch_screen = 0.3
# 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 minimal possible column width of the entry
# if 'size' is float, it is a minimal 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 everything, since you want it readable
# only the bar is specified by percentage, because you want it dynamic
format = [
('fs', 10, "l"), ('size', 5, "r"),
('used', 5, "r"), ('avail', 5, "r"), ('perc', 5, "r"),
('bar', 0.1, "l"), ('on', 11, "l")
]
# character to display filesystem size bar
barchar = '#'
# fill the empty space of the size bar with this character
bar_fillchar = '.'
# hide 'mount --bind' binds?
hidebinds = True
# list of files to try to get mount information from
# on normal linux systems only /etc/mtab or /proc/mounts make sense
mountfile = ['/etc/mtab', '/etc/mnttab', '/proc/mounts']
# use f_bsize or f_frsize
# possible values: bsize, frsize, auto
# auto means frsize if running on Linux, otherwise bsize
statvfs_block = 'auto'