Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c0() {
- echo `wmctrl -l | awk '{print $2}' | grep -o "0" | wc -l`
- }
- c1=`wmctrl -l | awk '{print $2}' | grep -o "1" | wc -l`
- c2=`wmctrl -l | awk '{print $2}' | grep -o "2" | wc -l`
- c3=`wmctrl -l | awk '{print $2}' | grep -o "3" | wc -l`
- c4=`wmctrl -l | awk '{print $2}' | grep -o "4" | wc -l`
- trig="wmctrl -d | grep -i "*" | awk '{print $1}'"
- w1=" test ( $(c0) ) "
- comm() {
- if [ "$trig"=="0" ]; then
- echo "^bg(#262626)$w1^bg() web $c1 file $c2"
- elif [$(trig)=="1"]; then
- echo "test $c0 web $c1 file $c2"
- elif [$(trig)=="2"]; then
- echo "test $c0 web $c1 file $c2"
- elif [$(trig)=="3"]; then
- echo "test $c0 web $c1 file $c2"
- elif [$(trig)=="4"]; then
- echo "test $c0 web $c1 file $c2"
- fi
- }
- while :; do
- echo $(comm)
- sleep 0.5
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement