Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # The scrolling text doesn't work as expected, instead i get a blank line
- # in its position. Don't know why yet. If someone has a fix plz post
- if pgrep sandbox > /dev/null
- then CUR=`genlop -cn | grep "*" | sed 's/ \* //' | tr -d " "`
- else CUR="None"
- fi
- LEN=`echo ${#CUR}`
- if [ "$LEN" -gt "27" ]
- then output='${color grey} [ebld ] ${color}${alignr}${scroll 27 2 '${CUR}'}'
- else output='${color grey} [ebld ] ${color}${alignr}'${CUR}
- fi
- echo "$output"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement