Skip to content

Instantly share code, notes, and snippets.

@satetheus
Last active July 16, 2019 21:22
Show Gist options
  • Save satetheus/faf37601dd88b99793a466d442cb176e to your computer and use it in GitHub Desktop.
Save satetheus/faf37601dd88b99793a466d442cb176e to your computer and use it in GitHub Desktop.
kiosk mode toggle
#! /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
#! /usr/bin/env bash
sudo sed -i "s/^#//" "/home/pi/.config/lxsession/LXDE-pi/autostart"
sudo reboot
@satetheus
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment