splashfuncs 407 B

1234567891011121314151617181920212223242526272829
  1. status() {
  2. if type splash-write >/dev/null 2>&1; then
  3. (TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) &
  4. fi
  5. }
  6. status_position() {
  7. status "PROGRESS $1"
  8. }
  9. status_title() {
  10. status "TITLE $1"
  11. }
  12. status_text() {
  13. if test -n "$1"; then
  14. status "MSG $1"
  15. else
  16. status "CLEAR"
  17. fi
  18. }
  19. status_pulse() {
  20. status "PULSATE"
  21. }
  22. status_tick() {
  23. status "TICK"
  24. }