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
0f7110c6
Commit
0f7110c6
authored
2 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Typos in README
parent
25bd8488
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
README.md
+5
-5
5 additions, 5 deletions
README.md
with
5 additions
and
5 deletions
README.md
+
5
−
5
View file @
0f7110c6
...
...
@@ -38,9 +38,9 @@ Developer documentation
Overview
--------
M
ain class of the program is
`RootStatusBar`
. This class
will
parse the configuration and then it start main loop.
The m
ain class of the program is
`RootStatusBar`
. This class parse
s
the configuration and then it start
s the
main loop.
Main loop is responsible for constructing status bar and printing it. Output formats are defined in
`RootStatusBar`
sub classes. Waiting for print the status bar c
ould
be interrupted from other threads.
sub classes. Waiting for print the status bar c
an
be interrupted from other threads.
Status bar block
----------------
...
...
@@ -50,8 +50,8 @@ Blocks correspond almost one to one to i3bar blocks.
See i3bar protocol documentation:
<https://i3wm.org/docs/i3bar-protocol.html>
In addition to i3bar block there is
`OnClick`
member.
You can store
there
a function which
will be
called when somebody
clicks on the buttton. Function
will
receive
`ClickEvent`
as its only argument.
You can store a function
there
which
is
called when
ever
somebody
clicks on the buttton. Function receive
s
`ClickEvent`
as its only argument.
Note that this function can be called from a different thread.
Please write it thread safe.
...
...
@@ -83,7 +83,7 @@ It is possible to use `ModuleParent` to schedule next render of the status bar
(Schedule method). This function is thread safe.
For module cooperation it is possible to use
`ModuleParent.GetGlobal<T>`
.
It
will
return an instance of
`T`
shared across all modules in status bar.
It return
s
an instance of
`T`
shared across all modules in status bar.
`T`
should implement
`GlobalModuleResource`
interface. There are methods
which are called before and after status bar initialization and generation.
For excepted behavior it is important to call
`GetGlobal`
from
`Init`
.
...
...
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