LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install polybar
copy
sudo dnf install polybar
copy
sudo pacman -S polybar
copy
sudo apk add polybar
copy
sudo zypper install polybar
copy
nix profile install nixpkgs#polybar
copy

SEE ALSO

polybar(1)

Copied to clipboard
Kai