/ Published in: Bash
URL: http://pjotor.com
Snipped from http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/
For TinyCore you'll need
Chromium, Pearl and lxrandr
Expand |
Embed | Plain Text
#!/bin/bash cat ~/.config/chromium/Local\ State | perl -pe "s/\"bottom.*/\"bottom\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f2),/" > ~/.config/chromium/Local\ State cat ~/.config/chromium/Local\ State | perl -pe "s/\"right.*/\"right\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f1),/" > ~/.config/chromium/Local\ State while true; do chromium-browser $1 --kiosk --start-maximized; sleep 5s; done
You need to login to post a comment.
