Code Monkey home page Code Monkey logo

bar3x's People

Contributors

shimmerglass avatar xxxserxxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bar3x's Issues

Question?

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

Scripting support

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,

Error when using example config

FATA[0000] cannot parse config file: yaml: line 2: mapping values are not allowed in this context
ERRO[0004] exit status 1

infinite loop when i use bar3x -h , -config and more

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

Seeing two / multiple bars when running the executable

two_bars

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

bar3x silently exiting with success code (debugging help)

bar3x exits randomly, but also when I use brightnessctl externally to change the brightness -- even though my config is not using the Backlight module.

  • The exit code is always 0
  • -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?

Document Battery Module

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)

Battery

Display current battery capacity. Supports: /sys/class/power_supply/*/capacity

Example: <Battery Name="BAT0" />

Parameters

  • Name: (string): Name of the power supply in /sys/class/power_supply/ Required

go get failure

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.

  • Go: 1.16.2
  • OS: Linux 5.11.6-arch1-1 x86_64
  • bar3x: v0.3.6

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.