Created
November 7, 2016 16:27
-
-
Save john-doherty/3a3a192e63dbcb8b390d630a5aa098c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable DPMS. | |
xset s off # don't activate screensaver | |
xset -dpms # disable DPMS (Energy Star) features. | |
xset s noblank # don't blank the video device | |
# Create a RAM disk to use as a FIFO for streaming. | |
if [ ! -d /iwk ]; then | |
mkdir /tmp/rdisk | |
fi | |
mount -t tmpfs -o size=25M tmsfs /tmp/rdisk | |
# Create a folder for updates | |
if [ ! -d /tmp/updates ]; then | |
mkdir /tmp/updates | |
fi | |
# Launch screensaver. | |
#xscreensaver >/dev/null & | |
# Mouse cursor hidden after 1 seconds of inactivity. | |
unclutter -idle 1 & | |
# get the MAC address | |
#read -r MACADDRESS < /sys/class/net/$iFACE/address | |
# Disable special keyboard keys | |
xmodmap -e 'keycode 166=' | |
xmodmap -e 'keycode 167=' | |
xmodmap -e 'keycode 180=' | |
xmodmap -e 'keycode 181=' | |
xmodmap -e 'keycode 163=' | |
xmodmap -e 'keycode 164=' | |
xmodmap -e 'keycode 165=' | |
xmodmap -e 'keycode 136=' | |
xmodmap -e 'keycode 148=' | |
xmodmap -e 'keycode 225=' | |
xmodmap -e 'keycode 234=' | |
# Disable some hotkeys (see settings in /home/pi/.keylaunchrc) system-wide. | |
keylaunch & | |
while true; do | |
# Reset the framebuffer's colour-depth | |
fbset -depth $(cat /sys/module/*fb*/parameters/fbdepth); | |
# move mouse cursor to the top-left | |
xwit -root -warp 50 50 | |
# Launch window manager without title bar. | |
exec matchbox-window-manager -use_titlebar no & | |
# Launch browser. | |
chromium --process-per-tab --process-per-site --incognito --disable-databases --disable-prompt-on-repost --disable-webgl --dns-prefetch-disable --enable-fast-unload --kiosk --disable-extensions --disable-plugins --disable-sync-preferences --disable-sync --disable-renderer-accessibility --disable-xslt --enable-lcd-text -disable-background-mode --disable-boot-animation --start-fullscreen -start-maximized --user-agent="Mozilla/5.0 (X11; Raspberry PI) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11" http://127.0.0.1/ | |
# Hide window unload loading is complete | |
#xdotool getactivewindow windowunmap | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment