Last active
March 6, 2018 14:42
-
-
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
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
#!/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