i3-barista
My personal i3-status bar based on barista. The
community modules can be found in the
martinohmann/barista-contrib
repository.
Installation
To install the bar, run the following:
make install
This will build and place the i3-barista
executable in $GOPATH/bin
.
Update the status_command
in the i3 configuration:
# top bar
bar {
id bar0
# You need one of the nerd fonts to correctly display the glyphs used in the
# bar. See https://github.com/ryanoasis/nerd-fonts for more information.
font "xft:Hack Nerd Font Mono Bold 9"
status_command i3-barista --bar top
position top
...
}
# bottom bar
bar {
id bar1
font "xft:Hack Nerd Font Mono Bold 9"
status_command i3-barista --bar bottom
position bottom
...
}
Dependencies
The bar requires the following binaries to be available in the path to function correctly:
checkupdates
from
pacman-contrib
for displaying pacman updates in the bar
nmtui-connect
for managing wifi networks
urxvt
to open certain click actions in a terminal
dmenu_session
for displaying the session picker when clicking on the session bar segment
xset
for querying and toggling DPMS
setxkblayout
for querying and toggling keyboard layouts
notify-send
for displaying additional information when clicking certain bar segments
OpenWeatherMap configuration
The OpenWeatherMap configuration is read from
~/.config/i3/barista/openweathermap.json
and has to include at least the
apiKey
field. See
modules/weather/openweathermap/owm.go
for all configuration values.
License
The source code of i3-barista is released under the MIT License. See the bundled
LICENSE file for details.