Coder Social home page Coder Social logo

Example configs? about taffybar HOT 6 CLOSED

taffybar avatar taffybar commented on May 14, 2024
Example configs?

from taffybar.

Comments (6)

travitch avatar travitch commented on May 14, 2024

I'll try to add more examples.

To help more immediately with the battery widget issue, try something like:

main = do
  let battWid = batteryBarNew defaultBatteryConfig 30
  defaultTaffybar defaultTaffybarConfig { startWidgets = [battWid], barHeight = 25 }

from taffybar.

altercation avatar altercation commented on May 14, 2024

Tristan, thanks, that's a huge help. Once I figure things out a bit more
I'm happy to help contribute to documentation (if that helps).

Ethan Schoonover
Github/Freenode: altercation - Solarized:
http://ethanschoonover.com/solarized

On Wed, Nov 30, 2011 at 07:48, Tristan Ravitch <
[email protected]

wrote:

I'll try to add more examples.

To help more immediately with the battery widget issue, try something like:

main = do
let battWid = batteryBarNew defaultBatteryConfig 30
defaultTaffybar defaultTaffybarConfig { startWidgets = [battWid],
barHeight = 25 }


Reply to this email directly or view it on GitHub:
#7 (comment)

from taffybar.

altercation avatar altercation commented on May 14, 2024

Tristan,

That battery config sample results in the following error. I'm not a total hs noob but neither am I proficient, so I would not be surprised if this is some trivial mistake on my end. Regardless, I thought I'd pass this along. My taffybar.hs is available at https://github.com/altercation/es-etc/blob/master/xmonad/taffybar/taffybar.hs

Error follows:

Configuration '/home/es/.config/taffybar/taffybar.hs' changed. Recompiling.
Program reconfiguration successful.
Launching custom binary /home/es/.cache/taffybar/taffybar-linux-x86_64

taffybar-linux-x86_64: connect: does not exist (No such file or directory)

The config works fine with the battery elements removed. I did also try the text only battery widget, same result.

from taffybar.

travitch avatar travitch commented on May 14, 2024

On Wed, Nov 30, 2011 at 09:54:32PM -0800, Ethan Schoonover wrote:

Tristan,

That battery config sample results in the following error. I'm not a
total hs noob but neither am I proficient, so I would not be
surprised if this is some trivial mistake on my end. Regardless, I
thought I'd pass this along. My taffybar.hs is available at
https://github.com/altercation/es-etc/blob/master/xmonad/taffybar/taffybar.hs

Error follows:

Configuration '/home/es/.config/taffybar/taffybar.hs' changed. Recompiling.
Program reconfiguration successful.
Launching custom binary /home/es/.cache/taffybar/taffybar-linux-x86_64

taffybar-linux-x86_64: connect: does not exist (No such file or directory)

The config works fine with the battery elements removed. I did also try the text only battery widget, same result.


Reply to this email directly or view it on GitHub:
#7 (comment)

As a first guess, does your distro provide the upower daemon? The
battery widget is currently written in terms of that because I didn't
want to implement the /proc parsing myself. It seems plausible that
the error could be coming from dbus when it tries to connect.

If your distro provides it but does not install it by default, you
might try to install it. If you don't have the upower daemon
available, I wouldn't expect it to work (I could throw together a
version that doesn't require the daemon).

from taffybar.

altercation avatar altercation commented on May 14, 2024

Tristan, it does and I had previously installed it, but you nailed it.
Bisecting a driver regression today and I reinstalled this test machine and
my install script doesn't handle upower. I'll work on the dbus/upower end
of things and I'm sure that will solve this issue. Thanks for the pointer.

Ethan

from taffybar.

altercation avatar altercation commented on May 14, 2024

Confirmed, working great. Thanks. Closing this.

from taffybar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.