ubuntu top bar hide

C++
sudo apt install gnome-shell-extension-autohidetopbar

For Ubuntu 20.04 
Alt + F
Type "r" and press Enter to reload gnome shell
Source

Also in C++: