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 Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +31 -1
M examples/bundle/left.sh +1 -1
| @@ -35,7 +35,7 @@ draw() { | |||
| 35 | 35 | # substitutions, so only digits may reach it. | |
| 36 | 36 | [[ $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 | 39 | while read -r n w s f; do | |
| 40 | 40 | [[ $n =~ ^[0-9]+$ && $w =~ ^[0-9]+$ && $s =~ ^[0-9]+$ && $f =~ ^[0-9]+$ ]] || continue | |
| 41 | 41 | # 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]+$ ]] || return | 36 | [[ $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; do | 39 | while read -r n w s f; do | ||
| 40 | [[ $n =~ ^[0-9]+$ && $w =~ ^[0-9]+$ && $s =~ ^[0-9]+$ && $f =~ ^[0-9]+$ ]] || continue | 40 | [[ $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 | |||