SHARE
TWEET

Untitled

zerooone Mar 9th, 2011 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # The scrolling text doesn't work as expected, instead i get a blank line
  3. # in its position. Don't know why yet. If someone has a fix plz post
  4. if pgrep sandbox > /dev/null
  5. then CUR=`genlop -cn | grep "*" | sed 's/ \* //' | tr -d " "`
  6. else CUR="None"
  7. fi
  8.  
  9. LEN=`echo ${#CUR}`
  10. if [ "$LEN" -gt "27" ]
  11. then output='${color grey}  [ebld ] ${color}${alignr}${scroll 27 2 '${CUR}'}'
  12. else output='${color grey}  [ebld ] ${color}${alignr}'${CUR}
  13. fi
  14.  
  15. echo "$output"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top