Configuration file for dwm-bar on macbook air
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.

17 lines
442 B

5 years ago
  1. #!/bin/sh
  2. # A dwm_bar function to display the number of emails in an inbox
  3. # Joe Standring <jstandring@pm.me>
  4. # GNU GPLv3
  5. # To count mail in an inbox, change "/path/to/inbox" below to the location of your inbox. For example, "/home/$USER/.mail/new"
  6. dwm_mail () {
  7. MAILBOX=$(ls /path/to/inbox | wc -l)
  8. if [ $MAILBOX -eq 0 ]; then
  9. printf "[\U1F4ED $MAILBOX]\n"
  10. else
  11. printf "[\U1F4EB $MAILBOX]\n"
  12. fi
  13. }
  14. dwm_mail