Linux command
polybar-msg 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Send action to module
polybar-msg action [module] [action]
Toggle module visibility
polybar-msg action [module] toggle
Send hook to IPC module
polybar-msg hook [module] [hook_index]
Quit polybar
polybar-msg cmd quit
说明
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.
参数
- 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.
FAQ
What is the polybar-msg command used for?
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.
How do I run a basic polybar-msg example?
Run `polybar-msg action [module] [action]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does action _module_ _action_ do in polybar-msg?
Send action to module.