polybar-msg
Send IPC messages to running Polybar
TLDR
Send action to module
$ polybar-msg action [module] [action]
Toggle module visibilitycopy
$ polybar-msg action [module] toggle
Send hook to IPC modulecopy
$ polybar-msg hook [module] [hook_index]
Quit polybarcopy
$ polybar-msg cmd quit
copy
SYNOPSIS
polybar-msg [options] command [args...]
DESCRIPTION
polybar-msg sends IPC messages to running polybar instances. Controls modules, triggers hooks, and manages polybar lifecycle. Used for dynamic bar updates and scripted interactions.
PARAMETERS
action module action
Send action to module.hook module index
Trigger IPC hook.cmd command
Send command (quit, restart, hide, show, toggle).-p pid
Target specific polybar PID.
SEE ALSO
polybar(1)