detached 5b114e9

docs(readme): show the bar as a screenshot and write icons as escape sequences

commit
5b114e947ea27124106d2a5bf5d31737f53a1d15
author
brice · · 2026-10-05 15:04 UTC
parent
1753172
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +6 -6
M README.md +6 -6
@@ -4,9 +4,7 @@ A dead simple status bar for Wayland: **one line of terminal text, nothing else.
44
55 Each part of the bar is a script. A script prints text, and neferbar shows it. If you can write `echo`, you can write a module.
66
7-```
8- workspace 2 firefox 14:32:07 cpu 12% vol 40% bat 88%
9-```
7+![neferbar showing a workspace number, an app name, a clock and system stats, with Nerd Font icons](docs/img/bar.png)
108
119 - **Text only.** ASCII, Unicode and Nerd Font icons. No images, no widgets, no clicks.
1210 - **Exactly one character high.** The bar is as tall as a terminal row, and it follows your monitor's scale.
@@ -117,13 +115,15 @@ Italic, bold and bold italic use the font's own files when it has them.
117115
118116 ### Icons
119117
120-Nerd Font icons are ordinary characters. Print them from a script with their UTF-8 bytes:
118+Nerd Font icons are ordinary characters, but GitHub cannot draw them in a code block, so the examples here write them as escape sequences. Give `printf` the icon's code point:
121119
122120 ```sh
123-printf '\357\200\227 %s\n' "$(date +%H:%M)" # clock icon
121+printf '\Uf017 %s\n' "$(date +%H:%M)" # clock icon (U+F017)
124122 ```
125123
126-Find icon codes at <https://www.nerdfonts.com/cheat-sheet>.
124+`\U` works in bash. Some minimal shells do not support it; the UTF-8 bytes work everywhere: `printf '\357\200\227 %s\n' "$(date +%H:%M)"`.
125+
126+Find icon names and code points at <https://www.nerdfonts.com/cheat-sheet>. In an editor with a Nerd Font you can also paste the icon itself into the script.
127127
128128 ### Animation
129129
@@ -4,9 +4,7 @@ A dead simple status bar for Wayland: **one line of terminal text, nothing else.
4 4
5 Each part of the bar is a script. A script prints text, and neferbar shows it. If you can write `echo`, you can write a module.5 Each part of the bar is a script. A script prints text, and neferbar shows it. If you can write `echo`, you can write a module.
6 6
7-```7+![neferbar showing a workspace number, an app name, a clock and system stats, with Nerd Font icons](docs/img/bar.png)
8- workspace 2 firefox 14:32:07 cpu 12% vol 40% bat 88%
9-```
10 8
11 - **Text only.** ASCII, Unicode and Nerd Font icons. No images, no widgets, no clicks.9 - **Text only.** ASCII, Unicode and Nerd Font icons. No images, no widgets, no clicks.
12 - **Exactly one character high.** The bar is as tall as a terminal row, and it follows your monitor's scale.10 - **Exactly one character high.** The bar is as tall as a terminal row, and it follows your monitor's scale.
@@ -117,13 +115,15 @@ Italic, bold and bold italic use the font's own files when it has them.
117 115
118 ### Icons116 ### Icons
119 117
120-Nerd Font icons are ordinary characters. Print them from a script with their UTF-8 bytes:118+Nerd Font icons are ordinary characters, but GitHub cannot draw them in a code block, so the examples here write them as escape sequences. Give `printf` the icon's code point:
121 119
122 ```sh120 ```sh
123-printf '\357\200\227 %s\n' "$(date +%H:%M)" # clock icon121+printf '\Uf017 %s\n' "$(date +%H:%M)" # clock icon (U+F017)
124 ```122 ```
125 123
126-Find icon codes at <https://www.nerdfonts.com/cheat-sheet>.124+`\U` works in bash. Some minimal shells do not support it; the UTF-8 bytes work everywhere: `printf '\357\200\227 %s\n' "$(date +%H:%M)"`.
125+
126+Find icon names and code points at <https://www.nerdfonts.com/cheat-sheet>. In an editor with a Nerd Font you can also paste the icon itself into the script.
127 127
128 ### Animation128 ### Animation
129 129
A docs/img/bar.png +0 -0 binary file: no text diff

binary file: no text diff

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 5

Tags 4

↑↓ moveenter openesc close