| « Diskless setup details | All is good » |
Reset browser
Just a quick&dirty hack to reset browser on my wall mounted touchscreen whenever the screen is blanked.
#!/usr/bin/perl
my $blanked = 0;
open (IN, "xscreensaver-command -watch |");
while (<IN>) {
if (m/^(BLANK|LOCK)/) {
if (!$blanked) {
system "killall firefox-bin && DISPLAY=:0 firefox &";
$blanked = 1;
}
} elsif (m/^UNBLANK/) {
$blanked = 0;
}
}
This goes with 'full fullscreen plugin' which starts firefox without any window decorations.