Comments (6)
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.
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.
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.
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.hsError 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.
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.
Confirmed, working great. Thanks. Closing this.
from taffybar.
Related Issues (20)
- Chrome MPRIS Icon is not set properly
- Fix up README
- ConfigFile -> MissingH dependency HOT 2
- taffybar-3.3.0 failed to build in Stackage Nightly HOT 9
- Image command buttons HOT 1
- Taffybar fails to build with haskell-gi-0.26 HOT 1
- Handling X11 error with error handler HOT 5
- Window titles missing HOT 1
- Make Crypto Widgets Fail Gracefully when Unable to Connect
- Support running multiple/different bar configurations HOT 9
- Taffybar crashes when using Discord HOT 9
- Somehow document how to make cabal new-repl work with nix shell HOT 2
- Taffybar barHeight problem HOT 2
- Set a maximum exponential backoff for crypto widgets
- mmap 4096 bytes at (nil): Cannot allocate memory HOT 37
- Windows widget `truncatedGet*Label` functions don't account for character entity encoding HOT 3
- Fully working taffybar with nix flakes example HOT 3
- Avoid calling Refresh on org.freedesktop.UPower.Device HOT 5
- Crypto Widgets aren't working. Possible issue with coin gecko
- mtl 2.3 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taffybar.