Skip to content

Comments

feat: status bar item menu#230

Draft
unsecretised wants to merge 4 commits intoacsandmann:mainfrom
unsecretised:better-menubar-icons
Draft

feat: status bar item menu#230
unsecretised wants to merge 4 commits intoacsandmann:mainfrom
unsecretised:better-menubar-icons

Conversation

@unsecretised
Copy link

This improves the menu bar / status bar / tray icon for rift by adding a small menu with 2 options:

  1. Quitting rift
  2. Launching Mission Control

#223 -> relevant discussion inspiring this PR (although not a lot)

Just 1 thing to clear out, I tried using a Client (RiftMachClient) but for some reason after I did this, Rift would start, but the "Rift by default is not activated..." message doesn't appear. Hence why the showing mission control is a std::process::Command (line 59 src/ui/menubar.rs)

However, the menu feels a bit empty..

Initially I thought of making it where each workspace would be one button and clicking on each of the buttons would focus onto the respective workspace. Maybe this could be discussed more as well (I have a almost working version for this locally)

@unsecretised unsecretised changed the title Better menu bar icon feat: status bar item menu Jan 17, 2026
@acsandmann
Copy link
Owner

the riftmachclient is the ipc client. since the menu bar icon is running in the same process as rift.

@acsandmann
Copy link
Owner

as for more items maybe we could make it so that you can define buttons in the config. similarly to a hotkey but something like this:

[menubar.items]
"Toggle Current Space" = "toggle_space_activated"

with the key being what the menu item is named

@unsecretised
Copy link
Author

Ok, so can I ask someone to check if the show mission control spaces bit works for them? I have a feeling that the code is correct, but the problem is that the show mission control from the menu is not having anything happen for me.. like literally nothing... Rift just stops working and I have no clue why.

@acsandmann
Copy link
Owner

acsandmann commented Jan 17, 2026

Ok, so can I ask someone to check if the show mission control spaces bit works for them? I have a feeling that the code is correct, but the problem is that the show mission control from the menu is not having anything happen for me.. like literally nothing... Rift just stops working and I have no clue why.

don't use riftmachclient. just take a tx to send the command to the reactor. its crashing because you are creating a mach client in the same process as the mach server. sorry i wasn't more clear in my earlier comment.

@unsecretised unsecretised marked this pull request as draft January 24, 2026 13:30
@unsecretised
Copy link
Author

I'm a bit busy atm with schoolwork so i'll work on this in a few weeks from now. If anybody wants to work on it they can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants