snippetbashTip
polybar-msg — Control `polybar` using inter-process-messaging (IPC). Note: IPC is disabled by default and can be e
Viewed 0 times
commandinterprocessclicontrolusingpolybarpolybar-msg
Problem
How to use the
polybar-msg command: 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. More information: <https://polybar.readthedocs.io/en/stable/user/ipc.html>.Solution
polybar-msg — 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. More information: <https://polybar.readthedocs.io/en/stable/user/ipc.html>.Quit the bar:
polybar-msg cmd quitRestart the bar in-place:
polybar-msg cmd restartHide the bar (does nothing if the bar is already hidden):
polybar-msg cmd hideShow the bar again (does nothing if the bar is not hidden):
polybar-msg cmd showToggle between hidden/visible:
polybar-msg cmd toggleExecute 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}}Code Snippets
Quit the bar
polybar-msg cmd quitRestart the bar in-place
polybar-msg cmd restartHide the bar (does nothing if the bar is already hidden)
polybar-msg cmd hideShow the bar again (does nothing if the bar is not hidden)
polybar-msg cmd showToggle between hidden/visible
polybar-msg cmd toggleContext
tldr-pages: common/polybar-msg
Revisions (0)
No revisions yet.