CapSoftware / Cap

Open source Loom alternative. Effortless, instant screen sharing.

Home Page:https://cap.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide recording window when recording, and create tray icon (macOS)

richiemcilroy opened this issue Β· comments

On starting recording, hide the main Cap window.

Show a stop recording icon in the macOS menu bar tray.

On tray icon click, stop the recording.

This is currently required for macOS only.

Requirements
-Create menu bar tray icon. Use Cap logo as icon maybe? This can be changed later.
-When recording is active, change icon to a stop icon. Maybe use this icon from Lucide.
-When recording is active, hide main Cap app recording window (keep camera overlay window as it is)

You can use this guide to help you get started developing locally as quickly as possible.

/bounty $50

can you assign this to me.
/attempt #21

This is all needed on mac maybe you should add a label "mac" on it @richiemcilroy.

/attempt #21

Anyone have a WIP for this?

Anyone have a WIP for this?

I am working on it, will raise the pr.

/bounty $150

Upped the bounty to $150.

In case it's helpful to anyone: I've set up a wip here.

Still missing a few things:

  1. Tray should only be initialized on MacOS
  2. Clicking tray icon to stop recording doesn't sync the UI
  3. Doesn't respect the same "min 5 sec" rule as the frontend (maybe it shouldn't?)
  4. Haven't tested outside local mode, but based on the logging it seems to work correctly
commented

All requirements added here

There's a quit and a dedicated show button. Left clicking the tray icon shows the main window as well.
Tray icon changes when you start or stop the recording.
When recording starts all windows except camera view get hidden.
Since handling the tray click event is done in the frontend, the UI reacts correctly.

I'm hoping later I can add the camera and microphone selectors to the tray menu as well.

Cap Tray

All requirements added here

There's a quit and a dedicated show button. Left clicking the tray icon shows the main window as well.

Tray icon changes when you start or stop the recording.

When recording starts all windows except camera view get hidden.

Since handling the tray click event is done in the frontend, the UI reacts correctly.

I'm hoping later I can add the camera and microphone selectors to the tray menu as well.

Cap Tray

Nice @ItsEeleeya - I'll check when I get to my desktop. If you add the mic / camera selectors there I'll add another $50 to the bounty

commented

Nice @ItsEeleeya - I'll check when I get to my desktop. If you add the mic / camera selectors there I'll add another $50 to the bounty

If there are no problems with the current features then that'll probably be for tomorrow!

@ItsEeleeya I'd suggest you create a draft PR soon. Even with the current version of what you have

commented

jemiluv8

It doesn't let me open another Pull Request as draft because it's already open

@richiemcilroy could you please turn the pull request to a draft?

/bounty $200

Solved with #22

@ItsEeleeya can you create a claim here please?

commented

/claim #22

/approve

Sorry @ItsEeleeya it's bugging I think - you may need to do /claim first with the PR linked

Reached out to Algora's support

commented

Sorry @ItsEeleeya it's bugging I think - you may need to do /claim first with the PR linked

Reached out to Algora's support

Oh sorry do you mean comment that inside the PR or here? Like <slash>claim #22

@ItsEeleeya: You just got a $200 tip! πŸ‘‰ Complete your Algora onboarding to collect your payment.

Should be done now @ItsEeleeya :) thanks for your help! feel free to tackle another if you want to claim more

commented

Thank you, will do!
I learnt quite a bit of Rust doing this even though I've been making some private and experimental Tauri apps.
It's definitely not priority but I'd like to open some suggestions later on for the UI (the main window frame and design) and a dedicated settings window/view (I think I saw some WIP setting related stuff?).

commented

Hey @richiemcilroy
Could you please send me a DM on Twitter? @ItsEeleeya

πŸŽ‰πŸŽˆ @ItsEeleeya has been awarded $200! 🎈🎊