I want to create a keybinding Ctrl+Alt+Delete on my Ubuntu PC. It should open
htop, but I want maximum priority for it. I use this command.
xterm -fullscreen -fa 'Monospace' -fs 13 -e htop
It works well, but when I add priority, it needs root permissions
$ nice -n -20 xterm -fullscreen -fa 'Monospace' -fs 13 -e htop nice: cannot set niceness: Permission denied
When I use
sudo, it works, but it runs the whole command as root. How can I run only
sudo? It would be ideal if it didn't ask for a password.