Linux command
waybar 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start waybar
waybar
Start with specific config
waybar -c [~/.config/waybar/config]
Start with specific style
waybar -s [~/.config/waybar/style.css]
Start on specific bar
waybar -b [bar-0]
Log to file
waybar -l [/tmp/waybar.log]
说明
waybar is a customizable status bar for Wayland compositors. It works with Sway, Hyprland, and other wlroots-based compositors. Configuration is JSON/JSON5. Modules define content: workspaces, clock, battery, network, CPU, memory, and many more. Styling uses CSS. Colors, fonts, padding, and layout are customizable. Different styles can apply to different modules. Built-in modules cover common needs. Custom modules execute scripts for specialized information. Click actions on modules run commands. Right-click, middle-click, and scroll actions are configurable. The bar updates reactively. System changes trigger updates without polling where possible.
参数
- -c _FILE_
- Config file.
- -s _FILE_
- Style file (CSS).
- -b _BAR_
- Bar name.
- -l _FILE_
- Log file.
- -h, --help
- Show help.
- -v, --version
- Show version.
FAQ
What is the waybar command used for?
waybar is a customizable status bar for Wayland compositors. It works with Sway, Hyprland, and other wlroots-based compositors. Configuration is JSON/JSON5. Modules define content: workspaces, clock, battery, network, CPU, memory, and many more. Styling uses CSS. Colors, fonts, padding, and layout are customizable. Different styles can apply to different modules. Built-in modules cover common needs. Custom modules execute scripts for specialized information. Click actions on modules run commands. Right-click, middle-click, and scroll actions are configurable. The bar updates reactively. System changes trigger updates without polling where possible.
How do I run a basic waybar example?
Run `waybar` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _FILE_ do in waybar?
Config file.