detached faee1f9

feat(examples): add the mono theme and trim the space before the active workspace number

commit
faee1f9a645a1805911570b8d306228e51773ae5
author
brice · · 2026-10-05 18:56 UTC
parent
32a3738
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +31 -1
M examples/bundle/left.sh +1 -1
@@ -35,7 +35,7 @@ draw() {
3535 # substitutions, so only digits may reach it.
3636 [[ $active =~ ^[0-9]+$ && $count =~ ^[0-9]+$ ]] || return
3737
38- line="$(bg "$ACCENT")$(fg "$(ink "$ACCENT")")$BOLD $active $RESET$(fade "$ACCENT" "$BAR")$(bg "$BAR")"
38+ line="$(bg "$ACCENT")$(fg "$(ink "$ACCENT")")$BOLD $active $RESET$(fade "$ACCENT" "$BAR")$(bg "$BAR")"
3939 while read -r n w s f; do
4040 [[ $n =~ ^[0-9]+$ && $w =~ ^[0-9]+$ && $s =~ ^[0-9]+$ && $f =~ ^[0-9]+$ ]] || continue
4141 # One dot per window, at most 4; a focused window past the 4th lights the 4th.
@@ -35,7 +35,7 @@ draw() {
35 # substitutions, so only digits may reach it.35 # substitutions, so only digits may reach it.
36 [[ $active =~ ^[0-9]+$ && $count =~ ^[0-9]+$ ]] || return36 [[ $active =~ ^[0-9]+$ && $count =~ ^[0-9]+$ ]] || return
37 37
38- line="$(bg "$ACCENT")$(fg "$(ink "$ACCENT")")$BOLD $active $RESET$(fade "$ACCENT" "$BAR")$(bg "$BAR")"38+ line="$(bg "$ACCENT")$(fg "$(ink "$ACCENT")")$BOLD $active $RESET$(fade "$ACCENT" "$BAR")$(bg "$BAR")"
39 while read -r n w s f; do39 while read -r n w s f; do
40 [[ $n =~ ^[0-9]+$ && $w =~ ^[0-9]+$ && $s =~ ^[0-9]+$ && $f =~ ^[0-9]+$ ]] || continue40 [[ $n =~ ^[0-9]+$ && $w =~ ^[0-9]+$ && $s =~ ^[0-9]+$ && $f =~ ^[0-9]+$ ]] || continue
41 # One dot per window, at most 4; a focused window past the 4th lights the 4th.41 # One dot per window, at most 4; a focused window past the 4th lights the 4th.
A examples/themes/mono.conf +30 -0
@@ -0,0 +1,30 @@
1+# mono: a black background and only shades of gray.
2+# Use it with:
3+# theme = "~/.config/neferbar/themes/mono.conf"
4+# background = "#000000"
5+# The bar lightens the theme's background a little so that it stands out from a
6+# terminal of the same theme; `background` makes it pure black.
7+# The format is kitty's, so a terminal can include the same file.
8+
9+background #000000
10+foreground #d0d0d0
11+
12+# The 16 colors, dark to light in each row. Color 0 is ink on a light accent
13+# and color 15 is ink on a dark one, so keep them at the two extremes.
14+color0 #000000
15+color1 #4a4a4a
16+color2 #8a8a8a
17+color3 #a8a8a8
18+color4 #c8c8c8
19+color5 #767676
20+color6 #9a9a9a
21+color7 #d0d0d0
22+
23+color8 #303030
24+color9 #5c5c5c
25+color10 #b0b0b0
26+color11 #c0c0c0
27+color12 #dcdcdc
28+color13 #8c8c8c
29+color14 #e4e4e4
30+color15 #ffffff
@@ -0,0 +1,30 @@
1+# mono: a black background and only shades of gray.
2+# Use it with:
3+# theme = "~/.config/neferbar/themes/mono.conf"
4+# background = "#000000"
5+# The bar lightens the theme's background a little so that it stands out from a
6+# terminal of the same theme; `background` makes it pure black.
7+# The format is kitty's, so a terminal can include the same file.
8+
9+background #000000
10+foreground #d0d0d0
11+
12+# The 16 colors, dark to light in each row. Color 0 is ink on a light accent
13+# and color 15 is ink on a dark one, so keep them at the two extremes.
14+color0 #000000
15+color1 #4a4a4a
16+color2 #8a8a8a
17+color3 #a8a8a8
18+color4 #c8c8c8
19+color5 #767676
20+color6 #9a9a9a
21+color7 #d0d0d0
22+
23+color8 #303030
24+color9 #5c5c5c
25+color10 #b0b0b0
26+color11 #c0c0c0
27+color12 #dcdcdc
28+color13 #8c8c8c
29+color14 #e4e4e4
30+color15 #ffffff

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