I want a shortcut to hide the top bar and dock, so I thought the best way to do that would be to figure out a terminal command which does the same.So, can someone tell me the command to do so or another way to make the shortcut work?
I want a shortcut to hide the top bar and dock, so I thought the best way to do that would be to figure out a terminal command which does the same.So, can someone tell me the command to do so or another way to make the shortcut work?
This command can be used to hide the topbar
to show it back
You can tweak the commands with a script to toggle show and hide.
For Ubuntu dock hiding - the below workaround is a bit overkill because we are disabling the whole extension.
for enabling back
You can tweak the commands with a script to toggle Enabling and Disabling
All together, you can have a single keyboard shortcut that can toggle "Hiding the Topbar and disabling the Extension" "Showing the Topbar and Enabling the Extension"
You can create a script with below content.
Below GIF shows the result. However, when gnome-shell refreshes/re-login/reboot etc. will affect the persistence.