Re: [dev] I made a bluetooth-control-thing

2022-06-20 Thread Stefan Mark
On Thu, 16 Jun 2022 19:39:14 +0100
Ethan Marshall  wrote:

> On 16/06/22 04:33pm, David Demelier wrote:
> >
> > Hi,
> >
> > There is something wrong with the makefile because each time I type
> > make it keeps rebuilding everything.  
> 
> From having built it myself, I can confirm that change detection seems
> to be broken for libsl/drw.c and all files in the libwdgt and sdb_bt.
> Everything else seems to be working correctly.

I just had a look into this. I have no simple idea to make it better.
The Makefile runs make commands for every sub-project, thus the main
Makefile does not have to know anything about the sub-projects
Makefiles. Change detection "works" in the way that nothing is actually
build, but does not work because all sub-makes are executed. 

> 
> > $ lbm
> > X Error of failed request:  BadWindow (invalid Window parameter)
> >   Major opcode of failed request:  15 (X_QueryTree)
> >   Resource id in failed request:  0x0
> >   Serial number of failed request:  12
> >   Current serial number in output stream:  12  
> 
> When I tried to auto-launch using .xprofile (which is ran before the
> windowmanager but after xorg starts), I got the exact same error.
> However, when I changed this in order to launch after the window
> manager which runs the system tray, this error does not appear and
> everything works as expected. Could this be something to do with
> incorrectly waiting for a system tray to be available? Do you
> definitely have a window manager which supports a system tray running?
> 
Rats. I thought i had that, but apparently i don't :)
I have a look at it as soon as i have time (probably a week or so). The
whole systray thing is pretty tough, i seem to be unable to find good
documentation ("good" as in good enough for me).


pgp1yJbwI6Sic.pgp
Description: OpenPGP digital signature


Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread Ethan Marshall
On 16/06/22 04:33pm, David Demelier wrote:
>
> Hi,
>
> There is something wrong with the makefile because each time I type
> make it keeps rebuilding everything.

From having built it myself, I can confirm that change detection seems
to be broken for libsl/drw.c and all files in the libwdgt and sdb_bt.
Everything else seems to be working correctly.

> $ lbm
> X Error of failed request:  BadWindow (invalid Window parameter)
>   Major opcode of failed request:  15 (X_QueryTree)
>   Resource id in failed request:  0x0
>   Serial number of failed request:  12
>   Current serial number in output stream:  12

When I tried to auto-launch using .xprofile (which is ran before the
windowmanager but after xorg starts), I got the exact same error.
However, when I changed this in order to launch after the window manager
which runs the system tray, this error does not appear and everything
works as expected. Could this be something to do with incorrectly
waiting for a system tray to be available? Do you definitely have a
window manager which supports a system tray running?

Ethan


signature.asc
Description: PGP signature


Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread Ethan Marshall
Thanks a lot for this! I have switched to using it instead of
blueman-applet and it works great so far. The simple UI is so much
better than the maze of a menu that blueman seems to have. I love it!

Other than the criticisms mentioned by the other guy in the first reply,
I would ask if there is a way I can enlarge the icon in my system tray
slightly. Currently, I can only just about see it, which is fine, but it
would be nice if I could see it more easily.

Thanks again, this is a fantastic tool.

Ethan

On 15/06/22 05:30pm, Stefan Mark wrote:
> I was always a bit annoyed by the lack of a simple, gui-based bluetooth
> control thing. Like blueman, but not in a scripting language. And maybe
> with somewhat simpler interface.
> 
> Thus i did this:
> https://git.weitnahbei.de/nullmark/little_blue_man
> 
> Its written in C, uses drw and dbus and it works. At least for me. It
> lacks many features and proper testing. And i got somewhat carried
> away and dabbled with ideas of starting my own toolkit. Turned out,
> such a thing is quite big a thing, thus there is no toolkit, but the
> code is somewhat more complicated than it has to. 
> 
> Anyway, i would like to hear some opinions :)
> 
> Sidenote and a warning: i am not a good c programmer. I just like to
> use it :)




signature.asc
Description: PGP signature


Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread David Demelier
On Wed, 2022-06-15 at 17:30 +0200, Stefan Mark wrote:
> I was always a bit annoyed by the lack of a simple, gui-based
> bluetooth
> control thing. Like blueman, but not in a scripting language. And
> maybe
> with somewhat simpler interface.
> 
> Thus i did this:
> https://git.weitnahbei.de/nullmark/little_blue_man
> 
> Its written in C, uses drw and dbus and it works. At least for me. It
> lacks many features and proper testing. And i got somewhat
> carried
> away and dabbled with ideas of starting my own toolkit. Turned out,
> such a thing is quite big a thing, thus there is no toolkit, but the
> code is somewhat more complicated than it has to. 
> 
> Anyway, i would like to hear some opinions :)
> 
> Sidenote and a warning: i am not a good c programmer. I just like to
> use it :)

Hi,

There is something wrong with the makefile because each time I type
make it keeps rebuilding everything.

Otherwise, I wanted to test but it exits with:

$ lbm
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  15 (X_QueryTree)
  Resource id in failed request:  0x0
  Serial number of failed request:  12
  Current serial number in output stream:  12

Regards,

-- 
David