2019-02-04 10:32:16 +01:00
# Waybar [![Travis](https://travis-ci.org/Alexays/Waybar.svg?branch=master)](https://travis-ci.org/Alexays/Waybar) [![Licence](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Paypal Donate](https://img.shields.io/badge/Donate-Paypal-2244dd.svg)](https://paypal.me/ARouillard)<br>![Waybar](https://raw.githubusercontent.com/alexays/waybar/master/preview-2.png)
2018-08-08 23:58:43 +02:00
2018-08-10 12:28:54 +02:00
> Highly customizable Wayland bar for Sway and Wlroots based compositors.<br>
2019-03-27 02:20:09 +01:00
> Available in Arch [community](https://www.archlinux.org/packages/community/x86_64/waybar/) or
2019-11-11 11:46:10 +01:00
[AUR ](https://aur.archlinux.org/packages/waybar-git/ ), [openSUSE ](https://build.opensuse.org/package/show/X11:Wayland/waybar ), and [Alpine Linux ](https://pkgs.alpinelinux.org/packages?name=waybar )< br >
2019-06-11 13:55:35 +02:00
> *Waybar [examples](https://github.com/Alexays/Waybar/wiki/Examples)*
2018-08-09 00:06:10 +02:00
2020-08-08 13:17:56 +02:00
#### Current features
2018-11-16 10:06:24 +01:00
- Sway (Workspaces, Binding mode, Focused window name)
2019-04-16 13:42:49 +02:00
- Tray [#21 ](https://github.com/Alexays/Waybar/issues/21 )
2018-08-08 23:58:43 +02:00
- Local time
- Battery
2018-08-10 12:28:54 +02:00
- Network
2020-04-17 09:09:30 +02:00
- Bluetooth
2018-08-09 23:57:11 +02:00
- Pulseaudio
2019-09-25 10:27:51 +02:00
- Disk
2018-08-10 12:28:54 +02:00
- Memory
- Cpu load average
2019-03-13 16:56:13 +01:00
- Temperature
2019-04-16 16:34:37 +02:00
- MPD
2018-08-10 16:29:37 +02:00
- Custom scripts
2019-02-01 21:52:38 +01:00
- Multiple output configuration
2018-08-15 15:03:51 +02:00
- And much more customizations
2018-08-10 12:28:54 +02:00
2020-08-08 13:17:56 +02:00
#### Configuration and Styling
2018-08-08 23:58:43 +02:00
2018-08-10 12:28:54 +02:00
[See the wiki for more details ](https://github.com/Alexays/Waybar/wiki ).
2020-08-08 13:17:56 +02:00
### Installation
Waybar is available from a number of Linux distributions:
[![Packaging status ](https://repology.org/badge/vertical-allrepos/waybar.svg )](https://repology.org/project/waybar/versions)
An Ubuntu PPA with more recent versions is available
[here ](https://launchpad.net/~nschloe/+archive/ubuntu/waybar ).
#### Building from source
2018-08-09 14:00:08 +02:00
```bash
2018-08-10 12:28:54 +02:00
$ git clone https://github.com/Alexays/Waybar
2018-11-16 10:07:20 +01:00
$ cd Waybar
2018-08-10 12:28:54 +02:00
$ meson build
$ ninja -C build
$ ./build/waybar
2018-12-29 00:06:59 +01:00
# If you want to install it
$ ninja -C build install
$ waybar
```
**Dependencies**
```
gtkmm3
jsoncpp
libsigc++
2019-01-25 16:38:38 +01:00
fmt
2018-12-29 00:06:59 +01:00
wayland
2020-04-19 02:30:08 +02:00
chrono-date
spdlog
2019-12-28 15:19:42 +01:00
libgtk-3-dev [gtk-layer-shell]
gobject-introspection [gtk-layer-shell]
libgirepository1.0-dev [gtk-layer-shell]
2018-12-29 00:06:59 +01:00
libpulse [Pulseaudio module]
libnl [Network module]
2020-04-19 02:30:08 +02:00
libappindicator-gtk3 [Tray module]
2018-12-29 00:06:59 +01:00
libdbusmenu-gtk3 [Tray module]
2019-04-16 16:34:37 +02:00
libmpdclient [MPD module]
2020-09-06 19:44:13 +02:00
libsndio [sndio module]
2018-08-09 14:00:08 +02:00
```
2020-05-02 13:06:15 +02:00
**Build dependencies**
```
cmake
meson
scdoc
wayland-protocols
```
2020-05-07 07:01:20 +02:00
On Ubuntu you can install all the relevant dependencies using this command (tested with 19.10 and 20.04):
2019-12-09 13:20:29 +01:00
```
2020-03-05 14:57:19 +01:00
sudo apt install \
clang-tidy \
gobject-introspection \
libdbusmenu-gtk3-dev \
libfmt-dev \
libgirepository1.0-dev \
libgtk-3-dev \
libgtkmm-3.0-dev \
libinput-dev \
libjsoncpp-dev \
libmpdclient-dev \
libnl-3-dev \
libnl-genl-3-dev \
libpulse-dev \
libsigc++-2.0-dev \
libspdlog-dev \
libwayland-dev \
scdoc
2019-12-09 13:20:29 +01:00
```
2018-08-16 17:19:02 +02:00
Contributions welcome! - have fun :)< br >
2018-08-16 14:29:41 +02:00
The style guidelines is [Google's ](https://google.github.io/styleguide/cppguide.html )
2018-08-10 12:28:54 +02:00
## License
Waybar is licensed under the MIT license. [See LICENSE for more information ](https://github.com/Alexays/Waybar/blob/master/LICENSE ).