1 2 3 4 5 6 7 8 9 10
#!/bin/sh main() { dt="$(wmctrl -d | sed -n 's/ * \* .*$//p')" : $((dt += 1)) printf '[%d]\n' ${dt} } main "${@}"