For now, we are using the format %I:%M %p
, that will show the time as 12:30 PM
.

Another useful options are the mouse-click items. Generally, you have three of them available:A custom script that will print what updates is available in the system when clicked on itIn simple words, this is the panel appearing in the bar. The one that contains all other modules.

Similar is done as needed for other states like empty, urgent, etc. It is up to your creativity to assign what values to these states to make it visually pleasing.
The type we use for a date module is:
Installing Polybar
format
options tells the bar what to show for which workspace. We have set it as label-state
. This means, we will define some states (active, empty, occupied, urgent) for the workspaces and the display will be according to that.Scripts and Custom Module
You can define a set of general colors in the beginning to make things easier.type = internal/date
[module/date]
type = internal/date
interval = 1.0
time = %I:%M %p
date = %d-%m-%Y
date-alt = "%{F#FF9535}%Y-%m-%d %I:%M:%S %p%{F-}"
label = %date% %time%
label-font = 5
label-foreground = ${colors.aurora-yellow}
format = <label>
format-prefix-font = 2
The contents of the script is available in our GitHub repo. What it does is check and tell whether any package update is available.mkdir -p ~/.config/polybar
If you’re running an X11-based setup, such as the i3 window manager or even Xfce, Polybar can really elevate the look of your desktop, help you keep essential info at your fingertips, and make better use of your screen space.
In Polybar, you will be using the tray
module for this purpose.Most major Linux desktop environments like GNOME, KDE Plasma, and Xfce come with their own built-in panels for launching apps, switching workspaces, and keeping track of what’s happening on your system. [module/tray]
type = internal/tray
format-margin = 8px
tray-spacing = 8px
The whole config can be divided broadly intro four parts.I hope you liked this detailed guide to Polybar customization. If you have any questions or suggestions, please leave a comment and I’ll be happy to answer them.
Wrapping Up
touch config.ini
💡The type
here will be: