One of the most satisfying parts of machine data is when you’re able to build fancy graphics to make sense of it. Once you’ve built these tables, charts and maps its time to show them off on a big screen mounted on the wall of your data center. While there are many ways to present your information one of the easiest is to load them up in individual workspaces and rotate between them. Here I’ve thrown together a quick script that will rotate between 4 workspaces every 10 seconds.
#!/bin/bash export DISPLAY=:0.0 i=0 while true; do wmctrl -s $i sleep 10 if [ $i = 4 ]; then i=0 else ((i++)) fi done