How to display date under time in GNOME
In Ubuntu 18.04, my current desktop looks like this:
How do I display date under time in GNOME panel as below?
themes gnome-shell date
|
show 3 more comments
In Ubuntu 18.04, my current desktop looks like this:
How do I display date under time in GNOME panel as below?
themes gnome-shell date
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
1
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18
|
show 3 more comments
In Ubuntu 18.04, my current desktop looks like this:
How do I display date under time in GNOME panel as below?
themes gnome-shell date
In Ubuntu 18.04, my current desktop looks like this:
How do I display date under time in GNOME panel as below?
themes gnome-shell date
themes gnome-shell date
edited Oct 8 '18 at 5:32
pomsky
32.2k11100131
32.2k11100131
asked Oct 7 '18 at 20:02
Sathish KannaSathish Kanna
988
988
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
1
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18
|
show 3 more comments
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
1
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
1
1
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18
|
show 3 more comments
2 Answers
2
active
oldest
votes
Use clock override extension to achieve this.
After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y
.
%n
is responsible for next line and for the rest of formats check here.
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
add a comment |
this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.
when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.
to make this alignment to the center,
we need to open the gdm3.css
file and edit the portion like below.
open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
and add the below lines under the line icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
it looks like below after adding the required lines.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
Save the file & Close.
Reboot to see the change.
Note: if you use different shell themes than the default shell theme, you may search for the text clock-display
in the respected gnome-shell.css
file. if found, edit there, if not found add the lines as shown above.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1081793%2fhow-to-display-date-under-time-in-gnome%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use clock override extension to achieve this.
After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y
.
%n
is responsible for next line and for the rest of formats check here.
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
add a comment |
Use clock override extension to achieve this.
After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y
.
%n
is responsible for next line and for the rest of formats check here.
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
add a comment |
Use clock override extension to achieve this.
After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y
.
%n
is responsible for next line and for the rest of formats check here.
Use clock override extension to achieve this.
After opening the extension's preferences, under "text to display instead of the clock" tab enter %I:%M %p%n %d/%m/%Y
.
%n
is responsible for next line and for the rest of formats check here.
edited Oct 9 '18 at 16:55
answered Oct 8 '18 at 5:49
Sathish KannaSathish Kanna
988
988
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
add a comment |
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
Nice catch! Thought this was not possible.
– vanadium
Oct 8 '18 at 7:27
add a comment |
this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.
when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.
to make this alignment to the center,
we need to open the gdm3.css
file and edit the portion like below.
open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
and add the below lines under the line icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
it looks like below after adding the required lines.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
Save the file & Close.
Reboot to see the change.
Note: if you use different shell themes than the default shell theme, you may search for the text clock-display
in the respected gnome-shell.css
file. if found, edit there, if not found add the lines as shown above.
add a comment |
this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.
when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.
to make this alignment to the center,
we need to open the gdm3.css
file and edit the portion like below.
open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
and add the below lines under the line icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
it looks like below after adding the required lines.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
Save the file & Close.
Reboot to see the change.
Note: if you use different shell themes than the default shell theme, you may search for the text clock-display
in the respected gnome-shell.css
file. if found, edit there, if not found add the lines as shown above.
add a comment |
this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.
when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.
to make this alignment to the center,
we need to open the gdm3.css
file and edit the portion like below.
open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
and add the below lines under the line icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
it looks like below after adding the required lines.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
Save the file & Close.
Reboot to see the change.
Note: if you use different shell themes than the default shell theme, you may search for the text clock-display
in the respected gnome-shell.css
file. if found, edit there, if not found add the lines as shown above.
this answer is only for "text alignment" purpose in continuation with the comments below the question and the already accepted answer.
when we enter next line by %n in the below field,
the lines are aligned to the left as shown in the below image.
to make this alignment to the center,
we need to open the gdm3.css
file and edit the portion like below.
open the file by sudo -H gedit /etc/alternatives/gdm3.css
find the below section under "TOP BAR" line number around 743.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
and add the below lines under the line icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
it looks like below after adding the required lines.
#panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
#panel.solid .popup-menu-arrow {
icon-shadow: none; }
#panel .clock-display {
text-align: center;
}
Save the file & Close.
Reboot to see the change.
Note: if you use different shell themes than the default shell theme, you may search for the text clock-display
in the respected gnome-shell.css
file. if found, edit there, if not found add the lines as shown above.
edited Feb 2 at 16:02
answered Oct 9 '18 at 18:22
PRATAPPRATAP
3,2082829
3,2082829
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1081793%2fhow-to-display-date-under-time-in-gnome%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
the second image you got it from other pc or your pc?
– PRATAP
Oct 8 '18 at 4:39
just edited.. but found a solution now to achieve that
– Sathish Kanna
Oct 8 '18 at 5:13
Oh, thats nice. You can write your own Answer and accept it.
– PRATAP
Oct 8 '18 at 5:14
1
in clock override extension added this " %I:%m %p%n %d-%m-%Y"
– Sathish Kanna
Oct 8 '18 at 5:15
i tried your code. its nice. but alignment issues are there. its not perfectly in the center to each line.
– PRATAP
Oct 8 '18 at 5:18