7
rated 0 times
[
7]
[
0]
/ answers: 1 / hits: 9397
/ 3 Years ago, thu, august 19, 2021, 12:17:48
How to remove clock from the top panel in gnome-shell?
More From » gnome
How to remove clock from the top panel in gnome-shell?
It is possible by creating an extension.
mkdir -p ~/.local/share/gnome-shell/extensions/Disable_Clock@ocelot
cd ~/.local/share/gnome-shell/extensions/Disable_Clock@ocelot
Make a metadata.json file.
gedit metadata.json
Cut following code, and Paste into the editor ,and Save.
{"shell-version": ["3.2"], "uuid": "Disable_Clock@ocelot", "name": "Disable Clock", "description": "Disable Clock from the top of panel"}
Make an extension.js file.
gedit extension.js
Cut following code, and Paste into the editor ,and Save.
const St = imports.gi.St;
const Main = imports.ui.main;
function init(meta) {
}
function enable() {
Main.panel._centerBox.remove_actor(Main.panel._dateMenu.actor);
}
function disable() {
Main.panel._centerBox.add_actor(Main.panel._dateMenu.actor);
}
Restart gnome-shell and Turn on "Disable Clock" extension by gnome-tweak-tool