andreykaere / ixwindow

Iconized xwindow module for Polybar (for bspwm and i3wm)
38 stars 3 forks source link

.hpp error #2

Closed blockhead100 closed 1 year ago

blockhead100 commented 1 year ago

image image

andreykaere commented 1 year ago

You installed opencv for python, but you need for C++. On debian-based systems it's "libopencv-dev" package. Note, that you need "dev" variation to make compiling work. Let me know how it works out for you.

blockhead100 commented 1 year ago

i got one more error. : ( image

i cant believe i did not think of that, thanks

blockhead100 commented 1 year ago

I am very new to poly bar and this hole rise thing so sorry for being kind of a dummy.

andreykaere commented 1 year ago

You said it was working, what did you do after that to get this error? (I just need kind of steps to reproduce issue)

m-debnath commented 1 year ago

I'm getting the same File name too long error after installing libopencv-dev.

@blockhead100 Could you please elaborate how did you resolved this?

I'm on Ubuntu 22.04.

image

andreykaere commented 1 year ago

I was able to reproduce it on my machine, thank you @m-debnath for pointing it out. Probably some version related issue here. I am gonna investigate tomorrow and will get back to you as soon as I will figure it out.

m-debnath commented 1 year ago

Thank you @andreykaere! In the meantime I've created a simple script, which outputs just the icon for the running application. I am using this together with xwindow module. Works well for my need. =)

https://gist.github.com/m-debnath/8b557ff95bb460af3818ece4379878e5

image

andreykaere commented 1 year ago

Looks nice too! However, it's quite difficult from what this project gives you, basically you're getting a real icon and not an emoji. I use Brave, Alacritty, Telegram very often and I really like to see a good icon and not some emoji replacement. So maybe you can give it a try yourself. And moreover, you don't have to specify icons yourself 99% of the time. But if your script suits you better, so be it :)

blockhead100 commented 1 year ago

Wow thank so much for finding the fix sorry for not getting back. I will try it later. Thanks

andreykaere commented 1 year ago

My pleasure! Feel free to reopen issue if problem is not resolved for you or open new issue if you have any other question or problem, will do my best to help you:)

blockhead100 commented 1 year ago

New error yay image

Reproduce steps: I'm running pop_os. I installed the package. Then I inputed my ixwindow dir. image Then I launched poly bar and got the error above.

blockhead100 commented 1 year ago

I can not reopen lol sorry

andreykaere commented 1 year ago

Are you sure you have bash installed?

blockhead100 commented 1 year ago

yep bash is installed, I think your script needs to be run as root which I dont know how to do with exec =. I google it and no one seemed to have a problem where they had a script needs to be run as root with poly bar. I could make a bash script that poly bar runs that then run ixwindow as root.

andreykaere commented 1 year ago

Of course you don't need to run it as a root. Okay, first of all, can you run it from the command line? Like just ./ixwindow. Second, show me the output of ls -l ixwindow (file, not directory)

blockhead100 commented 1 year ago

I got it working i rewrote my config for ploy bar and it works now thanks for making this cool script!

andreykaere commented 1 year ago

I am glad it worked out for you! I hope you got it working without sudo. If you got it working using sudo, then I advise you to find a way without using sudo.