i3-barista

command module
v0.0.0-...-c4d0eb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 50 Imported by: 0

README

i3-barista

Build Status GoDoc GitHub

My personal i3-status bar based on barista. The community modules can be found in the martinohmann/barista-contrib repository.

i3-barista

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL