taffybar / gtk-sni-tray

A StatusNotifierHost widget written using the gtk+3 bindings for haskell provided by gi-gtk.
BSD 3-Clause "New" or "Revised" License
36 stars 2 forks source link

Can this be made swallowable inside another dock? #23

Closed frankspace closed 4 years ago

frankspace commented 4 years ago

Hello! I'm trying to find a substitute for stalonetray that can deal with this newfangled SNI stuff, for use with FVWM. Presently, stalonetray can be "swallowed" by telling it to use a specific geometry (rather than a percentage of the screen) and not try to do anything like handle its own placement on the screen or anything like that. Is there a way to do something similar with gtk-sni-tray? Thank you!

colonelpanic8 commented 4 years ago

@frankspace this is not possible at present. But it should be quite easy to make it work. I'll have to look at exactly what stalonetray is doing when no_shrink is set to true, but if its as simple as not making struts and not doing anything at a ll with geometry it should be quite easy to make it work.

colonelpanic8 commented 4 years ago

@frankspace are you able to build gtk-sni-tray from source? I'm not entirely sure how to test that we are achieving the behavior that you want

frankspace commented 4 years ago

@IvanMalison That'd be awesome, although I certainly appreciate that you're busy.

Also, alas, no, I cannot build this from source; I spent a very long time trying on Arch, including needing to create a number of haskell packages that didn't exist and updating one or two that were out of date, until I finally ran into one that didn't compile and nobody seemed to know why. I don't know anything about haskell, personally. I gave up and created a PKGBUILD that pulls binaries (and a dependency) from Debian. I'd be happy to paste that PKGBUILD here, if it'd serve as any kind of useful reference.

frankspace commented 4 years ago

Oh. Derp. So I realized the point of your question just after clicking comment. Yeah, I guess there really is no way I'd be able to test that.

colonelpanic8 commented 4 years ago

@frankspace can you install nix package manager. The nix build for this is literally a one command build. Should do everything.

colonelpanic8 commented 4 years ago

https://nixos.org/nix/

colonelpanic8 commented 4 years ago

https://wiki.archlinux.org/index.php/Nix

colonelpanic8 commented 4 years ago

@frankspace if you can build from source, the no-strut option should do what you what you want.