ANNOUNCE: taffybar: an alternative status bar for xmonad

I've wanted a slightly fancier status bar than xmobar for a while, so I finally made one. It uses gtk2hs and dbus extensively, so if you hate either of those things it probably isn't for you. Being written in gtk, though, it can have more graphical widgets. http://hackage.haskell.org/package/taffybar Current feature highlights: * It has a system tray * Generic graph widget for things like CPU/memory * XMonad log over DBus so it can be restarted independently of xmonad * Graphical battery widget There is still a lot that I want to add but I figured getting some feedback early would be handy. Documentation is currently at http://pages.cs.wisc.edu/~travitch/taffybar until I figure out how to appease Hackage (see the System.Taffybar module).

This sounds really intriguing. Since I'm temporarily not using xmonad, and I'm sure others would like to see as well, could we get a screenshot? - Joel

On Sat, Aug 13, 2011 at 09:54:13PM -0700, Joel Burget wrote:
This sounds really intriguing. Since I'm temporarily not using xmonad, and I'm sure others would like to see as well, could we get a screenshot?
Oops, how could I forget. http://pages.cs.wisc.edu/~travitch/taffybar.jpg I have the xmonad log on the left, a CPU graph, memory graph, date/time, weather, and then system tray visible there.

On 13 August 2011 08:56, Tristan Ravitch
I've wanted a slightly fancier status bar than xmobar for a while, so I finally made one. It uses gtk2hs and dbus extensively, so if you hate either of those things it probably isn't for you. Being written in gtk, though, it can have more graphical widgets.
http://hackage.haskell.org/package/taffybar
Current feature highlights:
* It has a system tray * Generic graph widget for things like CPU/memory * XMonad log over DBus so it can be restarted independently of xmonad * Graphical battery widget
There is still a lot that I want to add but I figured getting some feedback early would be handy. Documentation is currently at http://pages.cs.wisc.edu/~travitch/taffybar until I figure out how to appease Hackage (see the System.Taffybar module).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I apologize if I'm missing something obvious here, but when I try to run taffybar I get Launching custom binary /home/alex/.cache/taffybar/taffybar-linux-i386 taffybar-linux-i386: ConnectionError "connectSession: DBUS_SESSION_BUS_ADDRESS is missing or invalid." Is there some D-BUS configuration that needs to happen before the package is usable? Thanks, Alex

On Sun, Aug 14, 2011 at 02:45:24PM -0700, Alexander Dunlap wrote:
I apologize if I'm missing something obvious here, but when I try to run taffybar I get
Launching custom binary /home/alex/.cache/taffybar/taffybar-linux-i386
taffybar-linux-i386: ConnectionError "connectSession: DBUS_SESSION_BUS_ADDRESS is missing or invalid."
Is there some D-BUS configuration that needs to happen before the package is usable?
Sorry, I assumed you would have dbus running already. If you add a line like: eval `dbus-launch --auto-syntax` early in your ~/.xsession (if logging in via some graphical login manager) or ~/.xinitrc (if starting X via startx). That should work for any normal -sh-style or -csh-style shell. That command starts DBus and sets the DBUS_SESSION* environment variables, and both xmonad and taffybar need to have the same settings for that variable, so make sure you execute that command before starting either of them. I'll add some notes in the documentation about this.

On 14 August 2011 14:51, Tristan Ravitch
On Sun, Aug 14, 2011 at 02:45:24PM -0700, Alexander Dunlap wrote:
I apologize if I'm missing something obvious here, but when I try to run taffybar I get
Launching custom binary /home/alex/.cache/taffybar/taffybar-linux-i386
taffybar-linux-i386: ConnectionError "connectSession: DBUS_SESSION_BUS_ADDRESS is missing or invalid."
Is there some D-BUS configuration that needs to happen before the package is usable?
Sorry, I assumed you would have dbus running already. If you add a line like:
eval `dbus-launch --auto-syntax`
early in your ~/.xsession (if logging in via some graphical login manager) or ~/.xinitrc (if starting X via startx). That should work for any normal -sh-style or -csh-style shell.
That command starts DBus and sets the DBUS_SESSION* environment variables, and both xmonad and taffybar need to have the same settings for that variable, so make sure you execute that command before starting either of them.
I'll add some notes in the documentation about this.
Thanks, that worked! Also, is there a way to change the default color of text printed by the bar? (I've added span tags with colors to the different text widget formats, but it would be nice to be able to set a default - it shows up as a nearly-impossible-to-read dark grey for me.) Thanks a lot for the great program! Alexander

On Sun, Aug 14, 2011 at 11:25:59PM -0700, Alexander Dunlap wrote:
Thanks, that worked! Also, is there a way to change the default color of text printed by the bar? (I've added span tags with colors to the different text widget formats, but it would be nice to be able to set a default - it shows up as a nearly-impossible-to-read dark grey for me.)
Thanks a lot for the great program!
Glad you find it useful. The color thing is bothering me a bit too. I think I know how to fix it properly and hopefully I'll be able to in the next day or two. I should probably just not set any colors by default and follow the default GTK theme. Then I should be able to provide some hook to use an alternate theme instead (something that lets you easily set text and background colors).

On Sun, Aug 14, 2011 at 11:25:59PM -0700, Alexander Dunlap wrote:
Thanks, that worked! Also, is there a way to change the default color of text printed by the bar? (I've added span tags with colors to the different text widget formats, but it would be nice to be able to set a default - it shows up as a nearly-impossible-to-read dark grey for me.)
Based on your feedback I used the GTK+ rc styling system to set the colors for the background of the bar and the default text color. Right now it ignores your GTK theme, but you can also customize it as described here: http://pages.cs.wisc.edu/~travitch/taffybar/System-Taffybar.html Let me know if that works a bit better for you - I played around with it a little bit and it seems to work with various themes and gives some reasonable customizability. This is in v0.1.2 up on hackage

On Sat, Aug 13, 2011 at 10:56:49AM -0500, Tristan Ravitch wrote:
I've wanted a slightly fancier status bar than xmobar for a while, so I finally made one. It uses gtk2hs and dbus extensively, so if you hate either of those things it probably isn't for you. Being written in gtk, though, it can have more graphical widgets.
Hi Tristan, Thanks for this new status bar, this is exactly what i've been looking for xmonad ! A word of warning though, it seems to wakeup a bit too much (and do too much work at wakeup) with the example configuration and make a laptop great for winter as a hand warmer :-) I ended up with just the clock widget (setup to update every minute instead of every second), the system tray, and the logwidget, and the wakeup rate is completely acceptable, and the cpu time stays low. -- Vincent

On Mon, Aug 15, 2011 at 08:55:44AM +0200, Vincent Hanquez wrote:
On Sat, Aug 13, 2011 at 10:56:49AM -0500, Tristan Ravitch wrote:
I've wanted a slightly fancier status bar than xmobar for a while, so I finally made one. It uses gtk2hs and dbus extensively, so if you hate either of those things it probably isn't for you. Being written in gtk, though, it can have more graphical widgets.
Hi Tristan,
Thanks for this new status bar, this is exactly what i've been looking for xmonad !
A word of warning though, it seems to wakeup a bit too much (and do too much work at wakeup) with the example configuration and make a laptop great for winter as a hand warmer :-)
I ended up with just the clock widget (setup to update every minute instead of every second), the system tray, and the logwidget, and the wakeup rate is completely acceptable, and the cpu time stays low.
Ah the config I gave has the CPU graph update every half second. That can be dialed back to anything (or, as you did, just dropped entirely). The bar itself doesn't have any wakeups to speak of, but some widgets are a little more aggressive.
participants (4)
-
Alexander Dunlap
-
Joel Burget
-
Tristan Ravitch
-
Vincent Hanquez