Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
I3csstatus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
I3csstatus
Commits
a15184e8
Commit
a15184e8
authored
2 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Typos in sample.conf
parent
2fbe02f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sample.conf
+61
-56
61 additions, 56 deletions
sample.conf
with
61 additions
and
56 deletions
sample.conf
+
61
−
56
View file @
a15184e8
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
# e) KEY (for true in boolean context)
# e) KEY (for true in boolean context)
#
#
# Notice, that no `"` is needed (and will not be removed)
# Notice, that no `"` is needed (and will not be removed)
# KEY should not contain `=` and should not start wit `[`.
# KEY should not contain `=` and should not start wit
h
`[`.
# White characters
on
begin/end will be trimmed.
# White characters
at the
begin/end will be trimmed.
# VALUE in a, b option will be trimmed too.
# VALUE in a
)
, b
)
option will be trimmed too.
# White characters
on
end of LINES in b, c will be removed (not from the begin).
# White characters
at the
end of LINES in b
)
, c
)
will be removed (not from the begin).
# However SECOND LINE in b and FIRST LINE in c should not contain any tiling tabs or spaces
# However
,
SECOND LINE in b
)
and FIRST LINE in c
)
should not contain any tiling tabs or spaces
.
#
M
ost generic is e option. There
should
be lines starting with `#` and no processing will be applied.
#
The m
ost generic is e
)
option. There
can
be lines starting with `#` and no processing will be applied.
# Last end-line character will not be a part of value.
# Last end-line character will not be a part of value.
# Value types in config:
# Value types in config:
...
@@ -82,8 +82,8 @@
...
@@ -82,8 +82,8 @@
# string: written as it is without quoting
# string: written as it is without quoting
# int: in decimal format eg. `10`
# int: in decimal format eg. `10`
# number: with decimal dot (`1.23`) or in scientific notation (`1e3`)
# number: with decimal dot (`1.23`) or in scientific notation (`1e3`)
# time: number in sec
ti
on (eg. 60 for one minute)
# time: number in secon
ds
(eg. 60 for one minute)
# bool: true/yes/use/1 or f
l
ase/no/unuse/0
# bool: true/yes/use/1 or fa
l
se/no/unuse/0
# only key without value is true as well
# only key without value is true as well
# path: string with simple expansion of ~ on the begin and environment variable
# path: string with simple expansion of ~ on the begin and environment variable
# ($HOME or ${HOME})
# ($HOME or ${HOME})
...
@@ -98,19 +98,19 @@
...
@@ -98,19 +98,19 @@
refresh
=
1
refresh
=
1
# <time> (default 1)
# <time> (default 1)
# Refresh the status bar
at lees once per this time
# Refresh the status bar
every <value> seconds
# (some modules c
ould do extra refresh by their own
)
# (some modules c
an invoke refresh more frequently
)
# Modules:
# Modules:
# ========
# ========
# You can specify module type in section name or by `_type` option (if you need
other
section name).
# You can specify module type in
the
section name or by `_type` option (if you need
a different
section name).
[
i3status
]
[
i3status
]
# this module c
ould
cooperate with i3status program and get a part of status bar
from them
# this module c
an
cooperate with i3status program and get a part of
its
status bar
# Not
ice,
that only one i3status is running for whole status bar.
# Not
e
that only one i3status
instance
is running for
the
whole status bar.
# Due to technical limitation of i3status
should be
option
`name`
unique.
# Due to technical limitation
s
of i3status
the `name`
option
must be
unique.
name
=
ethernet
_
first_
name
=
ethernet
_
first_
# mandatory <string>
# mandatory <string>
config
config
...
@@ -118,19 +118,19 @@ config
...
@@ -118,19 +118,19 @@ config
format_down
=
"E: down"
format_down
=
"E: down"
# <string>
# <string>
# This will be translated to i3config:
# This will be translated to i3
status
config:
# | order += "ethernet _first_"
# | order += "ethernet _first_"
# | ethernet _first_ {
# | ethernet _first_ {
# | format_up = "E: %ip (%speed)"
# | format_up = "E: %ip (%speed)"
# | format_down = "E: down"
# | format_down = "E: down"
# | }
# | }
# For possible usage see i3status man page
# For possible usage see i3status
(1)
man page
global_cache
=
1
global_cache
=
1
# <time> default 0
# <time> default 0
# If status bar is refreshed more than once per this time
it will be used old
# If status bar is refreshed more than once per this time
the module will use
#
values
without fetching new data from i3status.
#
previous data
without fetching new data from i3status.
# This option is valid across all i3status modules. Do not specify two different values.
# This option is valid across all i3status modules. Do not specify two different values.
[
time
]
[
time
]
...
@@ -140,12 +140,12 @@ short_format = HH:mm
...
@@ -140,12 +140,12 @@ short_format = HH:mm
# <string>
# <string>
# Format of date/time to show, expanded by C# DateTime.ToString
# Format of date/time to show, expanded by C# DateTime.ToString
# (https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings)
# (https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings)
# Short format will be used if there is no enough space in status bar (and it is defined).
# Short format will be used if there is no
t
enough space in
the
status bar (and it is defined).
round
=
60
round
=
60
# <time> 1
# <time>
default
1
refresh
refresh
# <bool> default false
# <bool> default false
# Round time value and refresh status bar every change of rounded value.
# Round time value and refresh status bar
on
every change of rounded value.
[
battery
]
[
battery
]
instance
=
BAT2
instance
=
BAT2
...
@@ -156,9 +156,11 @@ path = /sys/class/power_supply/BAT1/uevent
...
@@ -156,9 +156,11 @@ path = /sys/class/power_supply/BAT1/uevent
# <path> default /sys/class/power_supply/{instance}/uevent
# <path> default /sys/class/power_supply/{instance}/uevent
# Source uevent file path.
# Source uevent file path.
# The options instance and path are mutually exclusive.
time_window
=
300
time_window
=
300
# <time> default 60
# <time> default 60
# Derivation and re
a
ming time will be calculated from last `time_window` seconds.
# Derivation and rem
ain
ing time will be calculated from
the
last `time_window` seconds.
format
= {
status
} {
percent
}
format
= {
status
} {
percent
}
# <format>
# <format>
...
@@ -168,8 +170,8 @@ short_format = {percent}
...
@@ -168,8 +170,8 @@ short_format = {percent}
# Expanded values:
# Expanded values:
# status - Charging, Discharging, Full ...
# status - Charging, Discharging, Full ...
# percent - how full is battery in percent
# percent - how full is battery in percent
# derivation -
how much is changing percent
(number of percent per hour)
# derivation -
the percentage change
(number of percent per hour)
# re
a
ming - time to reach full or empty state
# rem
ain
ing - time to reach full or empty state
[
constant
]
[
constant
]
# Just show some text
# Just show some text
...
@@ -178,7 +180,7 @@ color = red
...
@@ -178,7 +180,7 @@ color = red
[
file
]
[
file
]
# read file conte
xt
every
refresh of
status bar
# read file conte
nts
every status bar
refresh
path
= $
HOME
/
file
/
to
/
show
path
= $
HOME
/
file
/
to
/
show
# mandatory <path>
# mandatory <path>
not_found_handler
= [
constant
]
not_found_handler
= [
constant
]
...
@@ -190,19 +192,19 @@ error_handler = [constant]
...
@@ -190,19 +192,19 @@ error_handler = [constant]
text
=
ERR
text
=
ERR
# <config> default see above
# <config> default see above
# If file is not found or some other error with read is raised,
# If
the
file is not found or some other error with read is raised,
# status bar described in this config will be shown.
# status bar described in this config will be shown.
# Often it contain only one constant module or is empty.
# Often it contain only one constant module or is empty.
parser
=
text
parser
=
text
# see below for explanation
# see below for explanation
in the section Parsers
[
pipe
]
[
pipe
]
# Read data from named pipe and process it by parser
(see above)
.
# Read data from
a
named pipe and process it by
the
parser.
# Pipe will be opened (
file
created) on startup. If the file
yet
exist
,
# Pipe will be opened (
and
created) on startup. If the file exist
s
# it will be unlinked (deleted).
# it will be unlinked (deleted).
# Pipe will be opened for bo
o
th
,
read and write, so it will not close
# Pipe will be opened for both read and write, so it will not close
# itself
,
if you close your file descriptor.
# itself if you close your file descriptor.
path
= /
tmp
/
pipe
path
= /
tmp
/
pipe
# mandatory <path>
# mandatory <path>
...
@@ -210,16 +212,16 @@ path = /tmp/pipe
...
@@ -210,16 +212,16 @@ path = /tmp/pipe
separator
=
10
separator
=
10
# <int> default 0
# <int> default 0
#
number of
ASCI character which separate
messages coming trow
pipe
# ASCI
I
character
number
which separate
s incoming messages through
pipe
delay
=
0
delay
=
0
# <time> default 0.01
# <time> default 0.01
# Bar will be redrawn no later than this time after new messages
# Bar will be redrawn no later than this time after new messages
# If
come lot's of messages is some
small
time
, this option will sa
f
e some resources
# If
multiple messages are received in a
small
period
, this option will sa
v
e some resources
show_old
=
10
show_old
=
10
# <time>
# <time>
# If message
s
is older than this time, it will be shown how old it is.
# If
the
message is older than this time, it will be shown how old it is.
max_old
=
30
max_old
=
30
# <time>
# <time>
...
@@ -232,10 +234,10 @@ no_data_handler = [constant]
...
@@ -232,10 +234,10 @@ no_data_handler = [constant]
# described in this config will be shown.
# described in this config will be shown.
parser
=
text
parser
=
text
# see
below for explanation
# see
section Parsers
[
exec
]
[
exec
]
# Create new process and
reed message from their stdo
ut
# Create new process and
parse its standard outp
ut
separator
=
10
separator
=
10
delay
=
0
delay
=
0
...
@@ -243,7 +245,7 @@ show_old = 10
...
@@ -243,7 +245,7 @@ show_old = 10
max_old
=
30
max_old
=
30
no_data_handler
= [
constant
]
no_data_handler
= [
constant
]
text
=
No
data
text
=
No
data
#
The same as in
pipe module
#
See
pipe module
program
=
python3
program
=
python3
# mandatory <string>
# mandatory <string>
...
@@ -259,15 +261,15 @@ stdin
...
@@ -259,15 +261,15 @@ stdin
time
.
sleep
(
1
)
time
.
sleep
(
1
)
i
+=
1
i
+=
1
# <string>
# <string>
# This string will be p
utt
ed to
program stdin
# This string will be p
ip
ed to
the standard input of the called process
[
http
]
[
http
]
# Fetch message from http(s) (for example
some json
api).
# Fetch message from http(s) (for example
a JSON
api).
error_handler
= [
constant
]
error_handler
= [
constant
]
color
=
red
color
=
red
text
=
ERR
text
=
ERR
#
The same as in
file module
#
See
file module
delay
=
0
delay
=
0
show_old
=
10
show_old
=
10
...
@@ -275,14 +277,14 @@ max_old = 30
...
@@ -275,14 +277,14 @@ max_old = 30
no_data_handler
= [
constant
]
no_data_handler
= [
constant
]
text
=
No
data
text
=
No
data
parser
=
text
parser
=
text
#
The same as in
pipe module
#
See
pipe module
url
=
http
://
kam
.
mff
.
cuni
.
cz
/~
jirikalvoda
/
x
url
=
http
://
kam
.
mff
.
cuni
.
cz
/~
jirikalvoda
/
x
# mandatory <string>
# mandatory <string>
period
=
20
period
=
20
# <time> default 10
# <time> default 10
# Delay between two
ask
s.
# Delay between two
request
s.
timeout
=
10
timeout
=
10
# <time> default 10
# <time> default 10
...
@@ -292,23 +294,25 @@ timeout = 10
...
@@ -292,23 +294,25 @@ timeout = 10
# Parsers:
# Parsers:
# ========
# ========
# Some of modules use parsers. It is part of module, that is responsible for processing text oriented message to part of status bar.
# Some of modules use parsers. It is part of module that is responsible for
# processing text oriented message to a part of the status bar.
# You can specify which parser you would like to use by `parser` option.
# You can specify which parser you would like to use by `parser` option.
# Parsers c
ould have some extra options additionally to module
options.
# Parsers c
an specify extra
options.
# Parser: text
# Parser: text
# ------------
# ------------
# Each line will be one segment of status bar.
# Each line will be one segment of status bar.
#
#
# Options:
# color = red
# color = red
# <color>
# <color>
# Parser: osdd_last
# Parser: osdd_last
# ------------
# ------------
# Parser for reading messages from On-Screen
d
isplay
d
aemon
# Parser for reading messages from
the
On-Screen
D
isplay
D
aemon
# (
which is
simple linux notification server).
# (simple linux notification server).
# First line of message contain
unix
time when message was shown
# First line of
the
message contain
s UNIX
time when
the
message was shown
# (time duration will be shown
on
begin of message).
# (time duration will be shown
at the
begin
ning
of message).
# Next lines contains color (in HEX format) and text to show.
# Next lines contains color (in HEX format) and text to show.
#
#
# Example usage:
# Example usage:
...
@@ -324,7 +328,7 @@ parser = osdd_last
...
@@ -324,7 +328,7 @@ parser = osdd_last
# Parser: checkmail_status
# Parser: checkmail_status
# ------------------------
# ------------------------
# Show number of new mail and connection status from checkmail.
# Show number of new
e-
mail
s
and connection status from checkmail.
#
#
# Example usage:
# Example usage:
[
checkmail_status
]
[
checkmail_status
]
...
@@ -344,7 +348,7 @@ parser = offlineimap_status
...
@@ -344,7 +348,7 @@ parser = offlineimap_status
# Parser: ICE_speed and ICE_next_stop
# Parser: ICE_speed and ICE_next_stop
# -----------------------------------
# -----------------------------------
# Show information
of
speed or next stop and delay for Deutsche
b
ahn ICE trains.
# Show information
about the
speed or next stop and delay for Deutsche
B
ahn ICE trains.
# Example usage:
# Example usage:
[
ICE_speed
]
[
ICE_speed
]
_
type
=
http
_
type
=
http
...
@@ -354,6 +358,7 @@ period = 5
...
@@ -354,6 +358,7 @@ period = 5
show_old
=
20
show_old
=
20
max_old
=
120
max_old
=
120
error_handler
=
error_handler
=
# On error, show nothing
[
ICE_next_stop
]
[
ICE_next_stop
]
_
type
=
http
_
type
=
http
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment