Skip to content

Instantly share code, notes, and snippets.

@duthied
Last active March 6, 2018 14:42
Show Gist options
  • Save duthied/1968cdbdaa0dc259024b4d18b227ea96 to your computer and use it in GitHub Desktop.
Save duthied/1968cdbdaa0dc259024b4d18b227ea96 to your computer and use it in GitHub Desktop.
Read a URL from a file and reload Chromium-browser with that url
#!/bin/bash
read -r url<./url.txt
# stop chromium
sudo killall chromium-browser
# manually set the display to one that is currently being used
# start chromium in kiosk mode with the URL we want to load
# use nohup so it stays up after we disconnect
DISPLAY=:0 nohup chromium-browser --kiosk --incognito "$url" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment