diff --git a/.gitignore b/.gitignore index 9e20be8..e775fd6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ eggs/ lib64/ parts/ sdist/ -var/ *.egg-info/ .installed.cfg *.egg diff --git a/var/lib/chromium-kiosk/.bash_profile b/var/lib/chromium-kiosk/.bash_profile new file mode 100644 index 0000000..f9f6a64 --- /dev/null +++ b/var/lib/chromium-kiosk/.bash_profile @@ -0,0 +1,8 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc +if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then + exec startx >& /dev/null +fi diff --git a/var/lib/chromium-kiosk/.hushlogin b/var/lib/chromium-kiosk/.hushlogin new file mode 100644 index 0000000..e69de29 diff --git a/var/lib/chromium-kiosk/.xinitrc b/var/lib/chromium-kiosk/.xinitrc new file mode 100644 index 0000000..b741b48 --- /dev/null +++ b/var/lib/chromium-kiosk/.xinitrc @@ -0,0 +1,19 @@ +#!/bin/sh +xset -dpms # disable DPMS (Energy Star) features. +xset s off # disable screen saver +xset s noblank # don't blank the video device + +# Check if xscreensaver is installed, if it is run it + +if command -v xscreensaver &> /dev/null +then + xscreensaver -no-splash & # xscreensaver daemon +fi + +unclutter & # hides your cursor after inactivity +xfwm4 & +if [ -e ~/chromium-kiosk-prehook.sh ] # Check if prehook exists and run it +then + ~/chromium-kiosk-prehook.sh +fi +exec chromium-kiosk run --config_prod --log_dir=~/ && killall -u $USER