Open tororutsu opened 5 years ago
Hello! Thanks a lot for opening the issue!!
I agree this is an issue and I've been thinking about it for while. What I habe in mind is something similar to i3blocks which is to add a config file that reads each component, builds the code for each entry, and runs them as usual. If anyone has a suggestion or wants to help, I'd be more than glad to talk to them.
Anyway, for now, you need to have go (golang) installed and build each go component inside components
folder independently using go build componentName.go
.
You then need to modify each entry starting from https://github.com/aonemd/onpar/blob/master/onpar.go#L36 and add the proper path to each component under components
folder. For example, I've this line in my onpar.go file:
batteryLevel := NewComponent("/home/aonemd/Workspace/onpar/components/battery_level", 2)
You need to do this for all existing components as well as for any other component you may want to add (you can add components in any language you want by the way. There's already already one component written in zsh).
After you're done, you need to build to main par component using go build onpar.go
.
Now you can just run the binary onpar
or to apply it system wide for daily use, read more.
The final step would be to add the path to this onpar
binary file to your system startup script. For example, I use .xinitrc
to start my programs at startup so I have this in my .xinitrc
:
/home/aonemd/Workspace/onpar/onpar &
That's it. You don't need to change anything in your dwm config at all. If you still have any issues, please don't hesitate to reply to this issue.
OMG man!!! That was my problem! I didn't Understand what you meant by path to the Component! You should update the readme with that. But yeah I crashed my whole arch install! No idea how, but after I tried to add to my .xinitrc it was just a black screen. I even chroot in, but I couldn't fix it. So I actually just finished my fresh reinstall!! Now it's time to try again!! Lol
fork/exec ~/projects/go/src/onpar/components/keyboard_layout: no such file or directory
i get this for every component when i just try to run onpar
even if i put full path home/rj/projects/go/src/onpar/components/...
i still get same issue. I did add the path in the onpar.go file.
Hello again!
Yeah I probably should rewrite the installation instructions in the README :D
Anyway, you need to use the full path to each component starting with the root path i.e., /home/username/...
.
Now I just get an exit 127. I am using the fish shell to just try to execute it. I'm scared to reboot with it in my . xinitrc cause last time I had to restore my computer
I'm my vim editor, I get an error on line 80 of the onpar.go file. Where you execute the xsetroot. It's complaining about the .Run() at the end but it is not saying anything. Just highlighting it
Actually I dont even know what is happening anymore LoL. I just really want to get this to work. Im so interested! This will top off my DWM install
I'm not really sure why that happens. Can you run xsetroot -name "Thanks for all the fish!"
in your shell?
First off Genius!!! I been waiting for something like this, but I am way to noob to build something like it, for now at least. But my question is what is the easiest way to install this, and does it automatically overwrite the default bar or do I have to change my config.def.h and recompile. Im still gunna try to figure it out but any help would be appreciated.