Information Technology

How to Show the Day in Ubuntu

Trapped inside during COVID-19. Spending days on your computer either working or looking for work or just searching for something interesting to keep your mind off the four walls it is easy to lose track of the day. Those of us who write software for a living can get so far into what we are doing we even forget to eat. When someone finally does get our attention coming back to reality is like waking from a coma.

Default Ubuntu Date Display

Few can understand why Ubuntu chose to leave the day off. Thankfully you can fix it rather easily.

If you don’t already have a bin directory under your $HOME create one now. You probably want to log out and log back in as well. By default, if you have a bin directory in your home directory Ubuntu will add it to your path. This is where you put your personal scripts and executables that you want available from the command line.

Now open your favorite text editor and paste in the following code:


case "$param" in
	"false"|"0") 	gsettings set org.gnome.desktop.interface clock-show-weekday false ;;
	""|"true"|"1") 	gsettings set org.gnome.desktop.interface clock-show-weekday true ;;
	*) 				echo "invalid parameter"


Save the file in your bin directory under the name “show-day”. Use the file browser and navigate to the file you just created. Right click on it. Select “Properties” from the menu that appears.

Select Properties

Navigate to permissions and flag the file executable.

Make executable

Close the dialog and you should be good to go. Run this command in a terminal using nothing, true, or 1 as a parameter and the day will appear on your display. This setting will remain until you manually change it (or Ubuntu pushes out an untested update that whacks it.)

If you want to get rid of the day for some reason run this script in a terminal again passing either false or 0 (that’s a zero) as the parameter. That will turn it off and the setting will persist the same.