polybar-msg
Controlpolybarusing inter-process-messaging (IPC). Note: IPC is disabled by default and can be enabled by settingenable-ipc = truein the Polybar config. More information: https://polybar.rtfd.io/en/stable/user/ipc.html.
-
Quit the bar:
polybar-msg cmd quit -
Restart the bar in-place:
polybar-msg cmd restart -
Hide the bar (does nothing if the bar is already hidden):
polybar-msg cmd hide -
Show the bar again (does nothing if the bar is not hidden):
polybar-msg cmd show -
Toggle between hidden/visible:
polybar-msg cmd toggle -
Execute a module action (the data string is optional):
polybar-msg action "#{{module_name}}.{{action_name}}.{{data_string}}" -
Only send messages to a specific Polybar instance (all instances by default):
polybar-msg -p {{pid}} {{cmd|action}} {{payload}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.