0

I know that Chromium can be started in kiosk mode with the flag --kiosk in the terminal. However, when Chromium is begun, it is in a regular windowed mode. Kiosk mode isn't enabled until the user presses F11 or fullscreens the window another way. How can Chrome automatically be fullscreened and in kiosk mode after the command is executed in the terminal?

3
  • 2
    As some answer on askubuntu suggests, do the following: chromium-browser --kiosk; sleep 5; xdotool key F11.
    – user218718
    Dec 31, 2013 at 21:50
  • That won't work, actually. No command after chromium-browser --kiosk is executed.
    – Jack Guy
    Dec 31, 2013 at 22:54
  • 1
    Ah, of course! I forgot that you should put & after chromium-browser --kiosk so it runs on background, and then it should work. You'd also try the actual suggestion of the answer I linked: chromium-browser --start-maximized &; sleep 5; xdotool key F11.
    – user218718
    Jan 1, 2014 at 7:14

1 Answer 1

1

What you want is to programmatically press F11, and that's possible with xdotool: it can emulate key-presses and do many other things too.

The solution is to create a shell script (or just one-liner), which runs chromium in background, sleeps a few seconds and then virtually presses F11:

chromium-browser --kiosk & sleep 5; xdotool key F11

That can also be done as a multi-liner (save this, for example, as chromium-kiosk.sh):

chromium-browser --kiosk &
sleep 5
xdotool key F11

Reference

1
  • 1
    chromium-browser -kiosk --start-fullscreen
    – micke
    Feb 8, 2015 at 16:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .