I am attempting to force
powertop to run when I log in by using the Startup Applications wizard in Ubuntu. Under the 'Command' entry, I've placed
gnome-terminal -x /home/***/Documents/programming/scripts/powertop.sh. It's using a one-line bash shell script:
echo "******" | sudo -S powertop
This inputs my superuser password correctly but doesn't allow me to interact with powertop after it's initialized because it's continuously running echo.
How can I get privileges to run powertop using a shell script, yet still be able to use it in gnome-terminal?