title: After run firefox go to full screen but not kiosk mode
body: <p>I would like to start Firefox automatically on startup, and then maximize the window. With the code below, I am currently able to start Firefox, however I cannot get past that.</p>
  
  <pre><code>#!/bin/bash
  firefox &amp;
  while [ "$(wmctrl -l | grep \"Mozilla Firefox\" 2&gt;&amp;1 | wc -l)" -eq 0 ]; 
  do
    sleep 1;
  done
  wmctrl -r firefox -b toggle, fullscreen
  </code></pre>
  
  <p>The first portion starts running Firefox. After that there is a loop, which I'm writing to create and display the Firefox window. The last step is maximize Firefox to full screen.</p>
  
  <p>I believe I have a problem with the while loop.</p>