mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 13:33:23 -07:00
* usr/lib/byobu/custom, usr/share/man/man1/byobu.1:
- fix color for custom scripts; default to no color changes
This commit is contained in:
parent
268b67a6f0
commit
9bd95b0b8c
3 changed files with 5 additions and 3 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -12,6 +12,8 @@ byobu (5.22) unreleased; urgency=low
|
||||||
- change foreground color of free memory percentage to yellow,
|
- change foreground color of free memory percentage to yellow,
|
||||||
if its over 90% used
|
if its over 90% used
|
||||||
- use a better variable name for memory usage
|
- use a better variable name for memory usage
|
||||||
|
* usr/lib/byobu/custom, usr/share/man/man1/byobu.1:
|
||||||
|
- fix color for custom scripts; default to no color changes
|
||||||
|
|
||||||
[ Jake Biesinger and Dustin Kirkland ]
|
[ Jake Biesinger and Dustin Kirkland ]
|
||||||
* usr/share/byobu/keybindings/common, usr/share/byobu/keybindings/f-
|
* usr/share/byobu/keybindings/common, usr/share/byobu/keybindings/f-
|
||||||
|
|
|
@ -48,8 +48,8 @@ __custom() {
|
||||||
output="$output$(printf "$str")"
|
output="$output$(printf "$str")"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Default to inverted coloring
|
# Default coloring
|
||||||
output="$output$(color invert; printf "%s" "$str"; color --)"
|
output="$output$str "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
@ -37,7 +37,7 @@ The background colors of the \fBbyobu\fP status lines can be adjusted by editing
|
||||||
|
|
||||||
\fBcpu_temp\fP \- the cpu temperature in Celsius (default) or Fahrenheit, configure TEMP=F or TEMP=C in \fI$BYOBU_CONFIG_DIR/statusrc\fP; displayed in the lower bar toward the right in yellow text on a black background; you may override the detected cpu temperature device by setting MONITORED_TEMP=/proc/acpi/whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP
|
\fBcpu_temp\fP \- the cpu temperature in Celsius (default) or Fahrenheit, configure TEMP=F or TEMP=C in \fI$BYOBU_CONFIG_DIR/statusrc\fP; displayed in the lower bar toward the right in yellow text on a black background; you may override the detected cpu temperature device by setting MONITORED_TEMP=/proc/acpi/whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP
|
||||||
|
|
||||||
\fBcustom\fP \- user defined custom scripts; must be executable programs of any kind in \fI$BYOBU_CONFIG_DIR/bin\fP; must be named N_NAME, where N is the frequency in seconds to refresh the status indicator, and NAME is the name of the script; N should not be less than 5 seconds; the script should echo a small amount of text to standard out, standard error is discarded; the indicator will be displayed in the lower panel, in inverted colors to your current background/foreground scheme, unless you manually specify the colors in your script's output; BEWARE, cpu-intensive custom scripts may impact your overall system performance and could upset your system administrator!
|
\fBcustom\fP \- user defined custom scripts; must be executable programs of any kind in \fI$BYOBU_CONFIG_DIR/bin\fP; must be named N_NAME, where N is the frequency in seconds to refresh the status indicator, and NAME is the name of the script; N should not be less than 5 seconds; the script should echo a small amount of text to standard out, standard error is discarded; the indicator will be displayed in the lower panel, in default colors, unless you manually specify the colors in your script's output; BEWARE, cpu-intensive custom scripts may impact your overall system performance and could upset your system administrator!
|
||||||
Example: \fI$BYOBU_CONFIG_DIR/bin/1000_uname\fP
|
Example: \fI$BYOBU_CONFIG_DIR/bin/1000_uname\fP
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
printf "\\005{= bw}%s\\005{\-}" "$(uname \-r)"
|
printf "\\005{= bw}%s\\005{\-}" "$(uname \-r)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue