What version of Epiphany are you running? 3.8.2 which is what is installed on my system does not have either of those options. You can check the version with epiphany --version and the available commands with man epiphany. This is one of the reasons I ma using chromium to display my dashboards and monitoring screens. You may be able to get bash/xdotools to launch epiphany and simulate hitting the f11 key to switch to fullscreen mode.
– Steve RobillardApr 29 '15 at 21:30

I was using chromium but the problem with Chromium is that it cannot run HTML5 videos. Thats why I had to switch back to epiphany. I tried using xautomation to simulate F11 but that does not work either.
– SRayApr 29 '15 at 22:28

What do you mean by I might by have to create a ~/.config for my profile? What does it do?
– SRayMay 7 '15 at 20:18

if you try to run it in app mode before the "~/.config" folder is set up epiphany won't run. it needs that folder at least created for it to store cookies adblock data bookmarks and other db data epiphany uses. mkdir ~/.config
– raspi-ninjaMay 7 '15 at 21:40

2

simply change ~/.config to /home/pi/.config when you put this in /etc/rc.local and it works like a charm
– AdeelFeb 29 '16 at 2:59

Thank you so much! This was the first script that I was able to run on a Raspberry Pi 3 running Raspbian Jessie with an Adafruit PiTFT. The browser now starts up full screen on the TFT screen. Cheers!
– Greg SadetskyJul 8 '16 at 17:05

1

I've just done this. Thanks for the tip, but it's only opening in the top left quarter of the screen. Any ideas how I make sure it opens full screen?
– TobyGAug 6 '16 at 10:34

Same issue as @TobyG, it runs in the top-left corner, 33% screen width and 50% height.
– Tom SöderlundAug 24 '16 at 19:44

thanks, works for me! but i wonder why WEBKIT_DISABLE_TBS=1 is set and what it is supposed to do. wasn't that relevant in regards to kweb?
– jitterJan 19 '17 at 0:37

Did not work: the top menu was still visible. When I closed epiphany, I realized that the keyboard was disabled; the screen randomly jumps up and down by ~20 pixels. Warning: at that point, recovering is not easy; I was able to delete the batch file and restart using the mouse (which still worked).
– Davide AndreaJul 3 '17 at 18:32

The -a flag doesn't result in fullscreen for me, and as F11 toggles fullscreen (rather than just setting it) I wanted something more concrete.

I ended up using wmctrl -r "<name of window>" -b add,fullscreen which sets fullscreen instead of toggling and calling this in a loop while the browser process is still running. Epiphany responds to this the same as if you'd just pressed F11, hiding the nav bar and removing window decorations.

I find that using a delay between the epiphany launch command and the xte sucks. I looked for a better way (and more reliable).

My first attempt was to open epiphany on a php file that would execute the xte command: <?php $out = shell_exec("xte 'key F11'"); ?>
Unfortunately it does not work. Cannot tell you why though (if someone knows, I am interested). When I echo the output with xte -h I do get the help of xte command on my webpage... Anyway I did not have much time, so I try another way around.

The idea is still to launch epiphany to a php file (fs.php) that contains:

As you noticed, my working directory is /var/www/fs/. But you can adapt this to your need. Also, it is quite easy to add a redirection on the php file to switch to the desired webpage once the web browser is running on full screen mode.

The php code create a witness (FS.chk) file while the bash, after having launched epiphany to this php file, is looking for the witness file. This file is only created once epiphany is opened (that get rids off the 15s sleep in previous posts). Once the bash sees the witness file, it executes the xte command...

EDIT: I just find out that it is important not to add "http://" before the URL passed to epiphany. If you do, the xte command will be issued, apparently, too soon.