On Sun, 20 Nov 2016 10:56:16 +0100, Ralf Mardorf wrote: >On Sun, 20 Nov 2016 03:08:12 -0600, David C. Rankin wrote: >> if [ $UID -eq 0 ]; then >> echo $(luminance) > "$dest"/brightness > >Are you using the "helper script" because > > sudo echo $(luminance) > "$dest"/brightness > >doesn't work? If so, then consider to use > > echo $(luminance) | sudo tee "$dest"/brightness > >to get rid of the "helper script". JFTR sudo sh -c would work, too, but IMO wouldn't make sense.