LinuxCommandLibrary

polybar-msg

Send IPC messages to running Polybar

TLDR

Send action to module

$ polybar-msg action [module] [action]
copy
Toggle module visibility
$ polybar-msg action [module] toggle
copy
Send hook to IPC module
$ polybar-msg hook [module] [hook_index]
copy
Quit polybar
$ 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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community