polybar-msg
Control polybar using inter-process-messaging (IPC). tldr-pages
On several platforms
Several platforms
Control polybar using inter-process-messaging (IPC). Note: IPC is disabled by default and can be enabled by setting enable-ipc = true in the Polybar config.
Quit the bar
polybar-msg cmd quitIdentifyRestart the bar in-place
polybar-msg cmd restartIdentifyHide the bar (does nothing if the bar is already hidden)
polybar-msg cmd hideIdentifyShow the bar again (does nothing if the bar is not hidden)
polybar-msg cmd showIdentifyToggle between hidden/visible
polybar-msg cmd toggleIdentifyExecute a module action (the data string is optional)
polybar-msg action "#module_name.action_name.data_string"IdentifyOnly send messages to a specific Polybar instance (all instances by default)
polybar-msg -p process_id cmd payloadIdentify