shimmerglass / bar3x Goto Github PK
View Code? Open in Web Editor NEWA powerful status bar for Linux desktops
License: GNU General Public License v3.0
A powerful status bar for Linux desktops
License: GNU General Public License v3.0
FATA[0000] cannot parse config file: yaml: line 2: mapping values are not allowed in this context
ERRO[0004] exit status 1
This issue is against the wiki module page, which describes an unsuppored "VPN" module.
There doesn't seem to be a version command but I built from source and will list the latest version at the time
Bar 3x Version: v0.3.6
OS: Ubuntu 20.04.5 LTS x86_64
WM: i3 v4.17.1
Logs:
INFO[0000] connecting to pulse
INFO[0000] connecting to pulse
INFO[0000] x creating window x=0 y=0 w=3840 h=30
INFO[0000] x creating window x=0 y=0 w=3840 h=30
The Battery module is implemented but it is not documented. Adding something like the snippet below would be nice for new users. (I'd make a pull request, but apparently GitHub does not support pull requests on wikis)
Display current battery capacity. Supports: /sys/class/power_supply/*/capacity
Example: <Battery Name="BAT0" />
Name
: (string): Name of the power supply in /sys/class/power_supply/
Requiredbar3x exits randomly, but also when I use brightnessctl
externally to change the brightness -- even though my config is not using the Backlight
module.
-debug
provides no information about why it is exiting, other than the expected layout information.strace
looks pretty clean, mostly containing .so
library opening messages, then a bunch of traps (a hundred or so) identical to this:
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=843048, si_uid=1001} ---
rt_sigreturn({mask=[]}) = 824633729440
and then:
futex(0xc00005e948, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigprocmask(SIG_SETMASK, ~[HUP INT QUIT ILL TRAP ABRT BUS FPE SEGV TERM STKFLT CHLD URG PROF SYS RTMIN RT_1 RT_2], NULL, 8) = 0
futex(0xc00005e948, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigprocmask(SIG_SETMASK, ~[HUP INT QUIT ILL TRAP ABRT BUS FPE SEGV TERM STKFLT CHLD URG PROF SYS RTMIN RT_1 RT_2], NULL, 8) = 0
futex(0xc000688148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xfecfa8, FUTEX_WAIT_PRIVATE, 0, NULLINFO[0000] x creating window x=0 y=0 w=1920 h=30
INFO[0000] connecting to pulse
WARN[0000] clock: 2 modules took more than 100ms to update
) = ?
It then does it's thing, working as expected and silent on the TTY, until it either decides to exit on its own (the amount of time this takes is variable), or I call brightnessctl
with any value, e.g.:
brightnessctl s 50%
at which point bar3x exits with:
+++ exited with 0 +++
If it was run without strace
there's no TTY output, but the exit code is still always 0.
This happens with trivial configs that disable most modules:
bar_left: |
<ModuleRow>
</ModuleRow>
bar_center: |
<ModuleRow>
<DateTime Format="15:04"/>
</ModuleRow>
bar_right: |
<ModuleRow>
</ModuleRow>
configs that disable all modules, and empty configs (bar3x -config /dev/null
).
Exit code 0
is "success". There's no panic, no core dump, and no error message. Is there any way I can track why it is exiting? Any way to have it panic, rather than silently swallowing the error and exiting?
Hello!
I was attracted by your project, really something new and ambition project.
Is it planned to have some sort of embedded scripting support? Ideally something like Lua (probably with help of goper-lua and liar packages) with built in methods /API interface, which would allow fully control / draw on widget?
It would be really awesome and endless ability to create many different kind of widgets.
Thanks,
The github path does not match the module declaration, causing go get
to fail.
The README says that go get github.com/ShimmerGlass/bar3x
works, but because the github path does not match the Go module declaration (case sensitive) the command fails:
$ go get github.com/ShimmerGlass/bar3x ~
go get: github.com/ShimmerGlass/bar3x@none updating to
github.com/ShimmerGlass/[email protected]: parsing go.mod:
module declares its path as: github.com/shimmerglass/bar3x
but was required as: github.com/ShimmerGlass/bar3x
This makes the package not go-gettable.
Just a quick question can this panel go on the left or right to and also can you have 2 or 3 on 1 screen? Also it would be nice if it used ini formatting like polybar so can include 1 file in the other for example have colours in 1 file and settings in another
Thanks
I did everything according to the instructions. It worked (Song and Author shows up) but the Status and Album Art are just gray. Is there any way to fix this?
os:manjaro
EX:
$ bar3x -h
INFO[0000] connecting to pulse
INFO[0000] connecting to pulse
Usage of bar3x:
-config string
YAML Config file path
-debug
Enable profile server on port 6060
-debug-addr string
Debug server addr (default "127.0.0.1:6060")
-theme string
YAML Theme file path
INFO[0000] connecting to pulse
Usage of bar3x:
-config string
YAML Config file path
-debug
Enable profile server on port 6060
-debug-addr string
Debug server addr (default "127.0.0.1:6060")
-theme string
YAML Theme file path
INFO[0000] connecting to pulse
Usage of bar3x:
-config string
YAML Config file path
-debug
Enable profile server on port 6060
-debug-addr string
Debug server addr (default "127.0.0.1:6060")
-theme string
YAML Theme file path
for infinity
even when i try change the config PATH to ~/.config/bar3x/config.yaml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.