tryhardfifi / breathe

breathe is a (distraction-free) peripheral breath trainer, it helps you breathe correctly so you can stay calm and focus on what matters.
265 stars 5 forks source link

Windows/Linux version? #1

Closed jadbox closed 3 years ago

jadbox commented 4 years ago

Would be awesome to get this onto other platforms :)

amar-laksh commented 4 years ago

Would be awesome to get this onto other platforms :)

KISS Solution for Linux: imv breathe.gif

-> imv: https://github.com/eXeC64/imv (really lightweight viewer)

-> breathe.gif: https://quietkit.com/img/box-breathing-4x-v03.gif

-> Set it to a custom shortcut and press q to close window.

tryhardfifi commented 4 years ago

That is definitely on the roadmap! I would first like to add some features to the macOS app to make it 100% usable and after that I can begin coding it up for linux/widows. In the meanwhile I am going to add your kiss solution to the readme @amar-laksh 😄

sojusnik commented 4 years ago

Would love to see this app as a flatpak. This would save time maintaining packages (.deb, .rpm etc.) for different distributions and make the installation very user-friendly.

tryhardfifi commented 4 years ago

I will take a look at it when I do the next release 😄

sojusnik commented 4 years ago

Just wanted to add that the best way to distribute flatpaks is via Flathub.

tryhardfifi commented 4 years ago

Hi! Does any of you know what would be a good way of implementing breathe on linux and windows at the same time? I have never written any app for windows or linux... I don't know what you guys think (probably the best way for linux is not for windows and viceversa) but if I can kill two birds with one stone I would be very happy haha😊

sojusnik commented 4 years ago

I'm not a developer, but Qt seems to be a popular framework for cross platforms.

sojusnik commented 4 years ago

Maybe this will help too: https://news.ycombinator.com/item?id=24242412

tryhardfifi commented 4 years ago

Thanks @sojusnik ! That thread was really helpful. I am still looking for a good framework... As you already know breathe's most important feature is that the window always stays on top, so before deciding I need to check out all the solutions and see if they have a way to implement this feature.

sojusnik commented 3 years ago

Just wanted to know if there's some progress on a version for Linux? Can't wait to use your app on Ubuntu!

tryhardfifi commented 3 years ago

Hey! Sorry I have been very busy lately... Some time ago I made an app with Qt with the basics (you can find the repo here). As I am no good in c++ what I did was to embed a js inside a QtWebView element and played around with the window settings so it always stayed on top and was anchored to a corner of the screen. The js code had a lot of bugs (using p5.js for the animations) and that was the last time I worked on it.

As of now:

As you see the three first problems are easily fixable (the fourth might be a lot trickier). It goes without saying that if any of you want to help you are more than welcome to do so!

If we haven't got any kind js expert here I will try to make some time this weekend to fix everything :)

tryhardfifi commented 3 years ago

Hey @sojusnik I am a couple of days late but I fixed the bugs that made the app unusable.

ezgif com-video-to-gif

As you can see you still need to resize the window to change the settings, but everything else works 👍

The only problem I am having right now is that I don't have a linux computer to compile the code (for it to run on linux)... Would you be willing to do so?

Edit: I just remembered you said you weren't a programmer, give me a couple of days so that I can find a workaround and I will compile it myself :)

sojusnik commented 3 years ago

Can't wait to test it out!

tryhardfifi commented 3 years ago

@sojusnik Hey! I just posted the (pre-)release on here! Bring any issues or feedback on that repo! Hope you like this first 'decent' linux version, take into account that it is still very rough tho...

sojusnik commented 3 years ago

Thanks! Already installed it and love it! But as you've said, it's very rough, already opening some issues over here.