0

During my work i run some bash scripts on linux terminal that takes 5 to 6 minutes to complete. I would like to append some command on that scripts, so that when it finish, it shows some visual feedback on the cinnamon window, like a blink or somethink like.

For now I use the espeak command to send me some sound, but it's not so good, since most of the time I don't work using earphones.

1
  • notify-send 'title' 'message' is perfect, thanks – alexpfx Dec 2 '19 at 17:36
1

You can make your screen "blink" by refreshing it.

for (( i=1 ; i<=5 ; i++ ))
do
  xrefresh -solid blue
  xrefresh -solid red
  xrefresh -solid green
  sleep 0.01
done

This should get your attention and get you in the mood for some epileptic dancing. Tune it up or down to your liking or just use part of your screen (-geometry option).

2
  • cannot make it work. tried: xrefresh -solid blue -geometry 200x200+0+0 && sleep 1 – alexpfx Dec 2 '19 at 17:36
  • Try a few repetitions quickly after each other, it might be too fast. – FelixJN Dec 2 '19 at 17:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.