Last active
July 16, 2019 21:22
-
-
Save satetheus/faf37601dd88b99793a466d442cb176e to your computer and use it in GitHub Desktop.
kiosk mode toggle
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
#! /usr/bin/env bash | |
sudo sed -i "/chromium/s/^/#/" "/home/pi/.config/lxsession/LXDE-pi/autostart" | |
sudo sed -i "/unclutter/s/^/#/" "/home/pi/.config/lxsession/LXDE-pi/autostart" | |
sudo reboot |
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
#! /usr/bin/env bash | |
sudo sed -i "s/^#//" "/home/pi/.config/lxsession/LXDE-pi/autostart" | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently needs a check to make sure there isn't already a '#' before it adds one. As is, it will continuously add a '#' for every time turnoffkiosk is ran, whereas turnonkiosk only removes the first '#' from a given line.