Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Run this script in display 0 - the monitor
  4. export DISPLAY=:0
  5.  
  6. # Hide the mouse from the display
  7. unclutter &
  8.  
  9. # If Chromium crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar
  10. sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/kiosk/.config/chromium/Default/Preferences
  11. sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/kiosk/.config/chromium/Default/Preferences
  12.  
  13. # Run Chromium and open tabs
  14. /usr/bin/chromium-browser --window-size=1920,1080 --kiosk --window-position=0,0 http://google.com http://bing.com &
  15.  
  16. # Start the kiosk loop. This keystroke changes the Chromium tab
  17. # To have just anti-idle, use this line instead:
  18. # xdotool keydown ctrl; xdotool keyup ctrl;
  19. # Otherwise, the ctrl+Tab is designed to switch tabs in Chrome
  20. # #
  21. while (true)
  22. do
  23. xdotool keydown ctrl+Tab; xdotool keyup ctrl+Tab;
  24. sleep 15
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement