Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
2.0 KiB

  1. #!/bin/sh
  2. # Author: Ivo
  3. # Source: http://crunchbang.org/forums/viewtopic.php?pid=237794#p237794
  4. # ANSI Color -- use these variables to easily have different color
  5. # and format output. Make sure to output the reset sequence after
  6. # colors (f = foreground, b = background), and use the 'off'
  7. # feature for anything you turn on.
  8. initializeANSI()
  9. {
  10. esc=""
  11. redf="${esc}[31m"; greenf="${esc}[32m"
  12. yellowf="${esc}[33m" bluef="${esc}[34m";
  13. cyanf="${esc}[36m"; purplef="${esc}[35m"
  14. boldon="${esc}[1m";
  15. reset="${esc}[0m"
  16. }
  17. # note in this first use that switching colors doesn't require a reset
  18. # first - the new color overrides the old one.
  19. initializeANSI
  20. cat << EOF
  21. ${boldon}${redf} ■ ${boldon}${greenf} ■ ${boldon}${yellowf} ■ ${boldon}${bluef} ■ ${boldon}${purplef} ■ ${boldon}${cyanf} ■ ${reset}
  22. ${boldon}${redf} ■■■ ${boldon}${greenf} ■■■ ${boldon}${yellowf} ■■■ ${boldon}${bluef} ■■■ ${boldon}${purplef} ■■■ ${boldon}${cyanf} ■■■ ${reset}
  23. ${boldon}${redf} ■■■■■ ${boldon}${greenf} ■■■■■ ${boldon}${yellowf} ■■■■■ ${boldon}${bluef} ■■■■■ ${boldon}${purplef} ■■■■■ ${boldon}${cyanf} ■■■■■ ${reset}
  24. ${redf} ■( )■ ${greenf} ■( )■ ${yellowf} ■( )■ ${bluef} ■( )■ ${purplef} ■( )■ ${cyanf} ■( )■ ${reset}
  25. ${redf} ■■■■ ■■■■ ${greenf} ■■■■ ■■■■ ${yellowf} ■■■■ ■■■■ ${bluef} ■■■■ ■■■■ ${purplef} ■■■■ ■■■■ ${cyanf} ■■■■ ■■■■ ${reset}
  26. ${redf} ■■ ■■ ${greenf} ■■ ■■ ${yellowf} ■■ ■■ ${bluef} ■■ ■■ ${purplef} ■■ ■■ ${cyanf} ■■ ■■ ${reset}
  27. EOF