information for multiple batteries

Jose A. Ortega Ruiz jao at gnu.org
Sun Jun 30 15:33:29 BST 2013


On Sun, Jun 30 2013, Tamas Papp wrote:

[...]

> I have a couple of (somewhat unrelated) questions:
>
> 1. How can I restart xmobar, eg with a signal?  Currently I use 
>
> $ killall xmobar; ~/.cabal/bin/xmobar

That's the best way i know :)

> 2. Can I start xmobar from xmonad?  Using suggestions on the web, my
> xmonad.hs now looks like this:
>
> --8<---------------cut here---------------start------------->8---
> import XMonad 
> import XMonad.Hooks.ManageDocks
> import XMonad.Config.Desktop
> import XMonad
> import XMonad.Hooks.DynamicLog (xmobar)
>   
> main = xmonad =<< xmobar desktopConfig
>          { modMask = mod4Mask
>          , terminal = "xfce4-terminal -e screen" 
>          }
> --8<---------------cut here---------------end--------------->8---
>
> but when xmonad is restarted (Mod4-Q) xmobar is not started, I still
> have to start it manually.  I am using the latest xmonad, xmonad-contrib
> and xmobar from cabal.

I don't know of any way.  Personally, i use XMonadProp instead of
StdinReader, and have a script that (re)starts two xmobar instances; so,
in my case, starting/stopping xmobar is totally decoupled from the
window manager (which i'm afraid it's the exact opposite of what you
want, sorry).

> 3. I cannot install xmobar with all extensions, because I am missing
> alsa-core:
>
> --8<---------------cut here---------------start------------->8---
> ~/src/xmobar$ cabal install -fall_extensions
> Resolving dependencies...
> Configuring alsa-core-0.5.0.1...
> cabal: The pkg-config package alsa version >=1.0.14 is required but it could
> not be found.
> Failed to install alsa-core-0.5.0.1
> cabal: Error: some packages failed to install:
> alsa-core-0.5.0.1 failed during the configure step. The exception was:
> ExitFailure 1
> alsa-mixer-0.1.2 depends on alsa-core-0.5.0.1 which failed to install.
> xmobar-0.18 depends on alsa-core-0.5.0.1 which failed to install.
> --8<---------------cut here---------------end--------------->8---
>
> What can I do to remedy this (I am on Debian, could not figure out which
> package to install).

In Debian, libasound2-dev is the one that alsa needs.  I'll add a note
to xmobar's documentation, since alsa-core doesn't seem to mention it.

HTH,
jao



More information about the Xmobar mailing list