Like: #! /bin/sh while true; do wmctrl -r :ACTIVE: -b add,fullscreen done Way to kill a battery though