taffybar: A desktop bar similar to xmobar, but with more GUI

[ bsd3, library, program, system ] [ Propose Tags ]

Taffybar is a gtk+3 (through gi-gtk) based desktop information bar, intended primarily for use with XMonad, though it can also function alongside other EWMH compliant window managers. It is similar in spirit to xmobar, but it differs in that it gives up some simplicity for a reasonable helping of eye candy.


[Skip to Readme]
Versions [faq] 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 3.0.0, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.2.1, 3.2.2
Change log CHANGELOG.md
Dependencies ansi-terminal, base (>3 && <5), broadcast-chan (>=0.2.0.2), bytestring, ConfigFile, containers, dbus (>=1.2.11 && <2.0.0), dbus-hslogger (>=0.1.0.1 && <0.2.0.0), directory, dyre (>=0.8.6 && <0.9), either (>=4.0.0.0), enclosed-exceptions (>=1.0.0.1), filepath, gi-cairo, gi-cairo-connector, gi-cairo-render, gi-gdk, gi-gdkpixbuf (>=2.0.18), gi-gdkx11, gi-glib (>=2.0.17), gi-gtk, gi-gtk-hs, gi-pango, gtk-sni-tray (>=0.1.5.0), gtk-strut (>=0.1.2.1), haskell-gi (>=0.22.6), haskell-gi-base (>=0.22.2), hslogger, HStringTemplate (==0.8.*), http-client (>=0.5), http-client-tls, http-types, multimap (>=1.2.1), old-locale, optparse-applicative, parsec (>=3.1), process (>=1.0.1.1), rate-limit (>=1.1.1), regex-compat, safe (>=0.3 && <1), scotty (>=0.11.0 && <0.12.0), split (>=0.1.4.2), status-notifier-item (>=0.3.0.5), stm, taffybar, template-haskell, text, time (>=1.9 && <2.0), time-locale-compat (==0.1.*), time-units (>=1.0.0), transformers (>=0.3.0.0), transformers-base (>=0.4), tuple (>=0.3.0.2), unix, utf8-string, X11 (>=1.5.0.1), xdg-basedir (==0.2.*), xdg-desktop-entry, xml, xml-helpers, xmonad [details]
License BSD-3-Clause
Author Ivan Malison
Maintainer IvanMalison@gmail.com
Revised Revision 1 made by eyevanmalicesun at 2020-03-19T20:21:51Z
Category System
Home page http://github.com/taffybar/taffybar
Source repo head: git clone git://github.com/taffybar/taffybar.git
Uploaded by eyevanmalicesun at 2020-03-01T13:15:33Z
Distributions Debian:3.0.0, NixOS:3.2.2
Executables taffybar
Downloads 16172 total (62 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2020-03-01 [all 3 reports]

Modules

  • System
    • System.Taffybar
      • System.Taffybar.Auth
      • System.Taffybar.Context
      • System.Taffybar.DBus
        • System.Taffybar.DBus.Toggle
      • System.Taffybar.Example
      • System.Taffybar.Hooks
      • Information
        • System.Taffybar.Information.Battery
        • System.Taffybar.Information.CPU
        • System.Taffybar.Information.CPU2
        • System.Taffybar.Information.Chrome
        • System.Taffybar.Information.DiskIO
        • System.Taffybar.Information.EWMHDesktopInfo
        • System.Taffybar.Information.MPRIS2
        • System.Taffybar.Information.Memory
        • System.Taffybar.Information.Network
        • System.Taffybar.Information.SafeX11
        • System.Taffybar.Information.StreamInfo
        • System.Taffybar.Information.X11DesktopInfo
        • XDG
          • System.Taffybar.Information.XDG.Protocol
      • System.Taffybar.LogFormatter
      • System.Taffybar.SimpleConfig
      • Support
        • System.Taffybar.Support.PagerHints
      • System.Taffybar.Util
      • System.Taffybar.Widget
        • System.Taffybar.Widget.Battery
        • System.Taffybar.Widget.CPUMonitor
        • System.Taffybar.Widget.CommandRunner
        • System.Taffybar.Widget.Decorators
        • System.Taffybar.Widget.DiskIOMonitor
        • System.Taffybar.Widget.FSMonitor
        • System.Taffybar.Widget.FreedesktopNotifications
        • Generic
          • System.Taffybar.Widget.Generic.AutoSizeImage
          • System.Taffybar.Widget.Generic.ChannelGraph
          • System.Taffybar.Widget.Generic.ChannelWidget
          • System.Taffybar.Widget.Generic.DynamicMenu
          • System.Taffybar.Widget.Generic.Graph
          • System.Taffybar.Widget.Generic.Icon
          • System.Taffybar.Widget.Generic.PollingBar
          • System.Taffybar.Widget.Generic.PollingGraph
          • System.Taffybar.Widget.Generic.PollingLabel
          • System.Taffybar.Widget.Generic.VerticalBar
        • System.Taffybar.Widget.Layout
        • System.Taffybar.Widget.MPRIS2
        • System.Taffybar.Widget.NetworkGraph
        • System.Taffybar.Widget.SNITray
        • System.Taffybar.Widget.SimpleClock
        • System.Taffybar.Widget.SimpleCommandButton
        • Text
          • System.Taffybar.Widget.Text.CPUMonitor
          • System.Taffybar.Widget.Text.MemoryMonitor
          • System.Taffybar.Widget.Text.NetworkMonitor
        • System.Taffybar.Widget.Util
        • System.Taffybar.Widget.Weather
        • System.Taffybar.Widget.Windows
        • System.Taffybar.Widget.Workspaces
        • XDGMenu
          • System.Taffybar.Widget.XDGMenu.Menu
          • System.Taffybar.Widget.XDGMenu.MenuWidget
      • System.Taffybar.WindowIcon

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for taffybar-3.2.2

[back to package description]

Taffybar Hackage Commits Build Status Help Wanted Gitter chat License BSD3

<a href="https://github.com/taffybar/taffybar/blob/master/doc/screenshot.png">https://github.com/taffybar/taffybar/blob/master/doc/screenshot.png</a>

Taffybar is a gtk+3 (through gi-gtk) based desktop information bar, intended primarily for use with XMonad, though it can also function alongside other EWMH compliant window managers. It is similar in spirit to xmobar, but it differs in that it gives up some simplicity for a reasonable helping of eye candy.

Before Installing

Taffybar's installation procedure varies depending on whether or not you intend to setup a new haskell project and use startTaffybar or use the dyreTaffybar with a global haskell installation . It is important for you to read this section so you can understand what all of that means before you decide how you want to install taffybar.

Taffybar is a library

As with window managers like XMonad and dwm, taffybar is most appropriately described as a library that allows you to build an executable that is customized to your tastes. This means that taffybar must be installed alongside a haskell compiler (ghc) that can compile the user's configuration source file.

The taffybar binary and startTaffybar vs dyreTaffybar

Taffybar can be started from your configuration file in two different ways:

dyreTaffybar

The dyreTaffybar entry point to taffybar uses the dyre library to automatically recompile your taffybar configuration whenever it detects that it has changed. The binary that is distributed with taffybar does nothing more than call this entry point. The main downside of this approach is that it does not allow the user to use any sort of project files for their configuration, and they must have any packages that are necessary for compilation of their configuration available in their global ghc environment.

startTaffybar

The startTaffybar entry point to taffybar simply starts taffybar with the provided configuration. The user binary will not be automatically recompiled when source files change. The advantage of using startTaffybar directly is that you can use that in the main function of a cabal project.

Distribution Packaging

Several linux distributions package taffybar (nixos, arch/aur, debian). Of these, only the NixOS distribution is officially supported by the maintainers. Using any of the others should be pretty similar to using a bare cabal installation of taffybar.

NixOS

If you wish to use the NixOS package for taffybar, make sure that you are using the module, and not simply the haskellPackage for taffybar. If you need to add additional haskell packages to the environment that compiles your taffybar.hs you will need to invoke that module and use the packages parameter to allow this.

It is also possible to run/use taffybar on NixOS without using this module by using a standalone haskell project for the taffybar configuration.

Using the overlay.nix when taffybar is broken in nixpkgs

The taffybar haskell package in nixpkgs has been broken in the unstable channel from time to time. This repository provides a nix overlay file which can be used to build taffybar with current versions of nixpkgs. See this comment for details on how to use the overlay.

Installation From Hackage/Source

Prerequisites

If you are not using distribution packaging of taffybar or the nix package manager (it will handle getting all the necessary packages for you), you will need to install all of taffybar's non-haskell dependencies manually.

Start by making sure you have installed everything that is needed for haskell-gi. Taffybar also needs the equivalent of libdbusmenu-gtk3-dev and libgirepository1.0-dev on Debian.

You can also get some idea of what the necessary dependencies are by looking at the nix section of the stack.yaml file in the taffybar repository.

Cabal

Cabal installation is a simple matter of installing taffybar from hackage:

cabal install taffybar

You do not need to do this if you are using the project approach with cabal.

The project approach

The project approach to installing/using taffybar involves maintaining a small haskell project that produces the users taffybar binary. No matter which package manager you choose to use you will need to make a .cabal file for this project. It is recommended that you use this example as a template. In that example, the users configuration resides in the file taffybar.hs in the same directory, but that can be changed as needed. As of right now, dyreTaffybar is incompatible with this approach because dyre simply calls ghc directly.

Cabal

Simply run cabal new-install to install the binary.

Stack

With stack, you will also need to maintain a stack.yaml file. Run stack install to install the binary. See this example

Nix

You will need to add default.nix file to your package. See this example

You may also need to use the overlay provided by this repository. See this comment for details.

Overlay

The taffybar haskell package is currently broken in nixpkgs, because some of its dependencies are not compiling correctly/are not sufficiently new. The environment.nix file in this repository fixes these build issues with an overlay. The overlay.nix file extends the environment overlay so that it overrides the taffybar package's build description to build the nix taffybar package from the repository source directory. An example of how to set up nixpkgs to use the taffybar overlay can be found here.

Configuration

Like xmobar and XMonad, taffybar is configured in haskell. Taffybar depends on dyre to automatically detect changes to its configuration file ($XDG_CONFIG_HOME/taffybar/taffybar.hs) and recompile when appropriate.

For more details about how to configure taffybar, see the full documentation. You can find a list of available widgets here

FAQ

For the time being, taffybar's frequently asked questions page lives in this github issue.

Contributing

Taffybar desperately needs contributors. If you want to help, but don't know where to get started you can check out our "help wanted" and "easy" labels:

Help Wanted Help Wanted