How to Show Battery Percentage on Top Bar in Fedora 34 Gnome 40


It’s important to keep an eye on the battery if your laptop is running without AC power. And here’s how to show battery percentage in Fedora Workstation.

By adding a small percentage level icon in Gnome panel, you can see how much battery left at any moment. And this tutorial will also work on Ubuntu, Debian, Manjaro, and other Linux with GNOME Desktop.

Option 1.) Single Command to show Battery Percentage in GNOME Panel:

For those familiar with Linux commands, simply open terminal from system app launcher. When terminal opens, paste the command below and hit run:

gsettings set org.gnome.desktop.interface show-battery-percentage true

That’s it!

To hide it again, reset the key via gsettings command:

gsettings reset org.gnome.desktop.interface show-battery-percentage

Option 2.) Toggle Battery Percentage via Gnome Tweaks:

The Gnome Tweaks configuration tool has the option to enable / disable this feature.

Firstly, search for and install “Gnome Tweaks” in Software if you don’t have it. Or run command in terminal to install the tool:

sudo dnf install gnome-tweaks

The install command varies on different Linux Distro. For Ubuntu / Debian, run: sudo apt install gnome-tweaks And in Arch or Manjaro Linux, run this command instead: sudo pacman -S gnome-tweaks

Secondly, launch Gnome Tweaks and go to “Top Bar” settings in left pane. Then you’ll see the toggle icon for ‘Battery Percentage’.

That’s it. Enjoy!

Merilyn Ne
Hi, I'm Merilyn Ne, a computer geek working on Ubuntu Linux for many years and would like to write useful tips for beginners. Forgive me for language mistakes. I'm not a native speaker of English.