LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

swaybar

Default status bar for Sway compositor

TLDR

Start swaybar (usually started by sway)
$ swaybar
copy
Start with specific bar ID
$ swaybar -b [bar-0]
copy
Start with custom config
$ swaybar -c [~/.config/sway/config]
copy
Enable debug logging
$ swaybar -d
copy

SYNOPSIS

swaybar [options]

DESCRIPTION

swaybar is the default status bar for the Sway Wayland compositor. It displays workspace buttons, window titles, and a customizable status area.The status bar is typically started automatically by Sway based on the bar configuration in the sway config file. The status area content is generated by executing a status_command, which outputs text or JSON to stdout.Swaybar supports the i3bar JSON protocol for structured status output with colors and click events. It also provides a system tray for applications using the StatusNotifierItem protocol.Configuration including colors, position, fonts, and behavior is done through the sway configuration file within a bar block.

PARAMETERS

-b, --bar_id id

Bar ID for which to get the configuration.
-c, --config file
Path to sway configuration file.
-d, --debug
Enable debug logging.
-h, --help
Display help message.
-v, --version
Display version information.

CONFIGURATION

Configure in sway config file:

$ bar {
    status_command i3status
    position top
    colors {
        background #323232
        statusline #ffffff
    }
}
copy

INSTALL

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

CAVEATS

Must be run under Sway compositor. Limited system tray support compared to standalone bars. For advanced customization, consider Waybar as an alternative. Status commands must output data compatible with swaybar or i3bar protocol.

HISTORY

swaybar was developed as part of the Sway project, providing a native Wayland status bar. Sway, created by Drew DeVault, aims for i3 compatibility on Wayland. The bar follows i3bar conventions while operating in a pure Wayland environment without X11 dependencies.

SEE ALSO

sway(1), i3status(1), waybar(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid