diu_kiosk 726 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. export DISPLAY=:0
  3. # turn off screensave/screen blanking
  4. #
  5. xset s noblank
  6. xset s off
  7. xset -dpms
  8. # hide mouse after 0.5 seconds of idle time
  9. #
  10. unclutter -idle 0.05 -root &
  11. # hide mouse completely
  12. #
  13. #unclutter -root &
  14. # clear out warning bar on chromium
  15. #
  16. tmpfn=`mktemp`
  17. jq '.profile.exited_cleanly = true' $HOME/.config/chromium/Preferences | jq '.profile.exit_type = "Normal"' > $tmpfn
  18. mv $tmpfn $HOME/.config/chromium/Preferences
  19. # start chromium in kiosk mode
  20. #
  21. #/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk ./html/index.html
  22. #
  23. /usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk 'http://localhost:60535'
  24. # refresh
  25. #
  26. #xdotool keydown ctrl+r; xdotool keyup ctrl+r;