How to change "niceness" while perfoming top command?
Press r. That's it! :-)
Reference: The 9th item in 12 TOP Command Examples in Linux
htop gives you a user interface, that is easier to use. F7 and F8 are used to renice the high-lighted process. You need sudo permissions to decrease the nice value.
sudo add-apt-repository universe # only for standard Ubuntu
sudo apt update
sudo apt install htop
htop
Or if you want to decrease the nice value (can be dangerous)
sudo -H htop