Skip to content

feat(gtk): tray menu with Bluetooth connect/disconnect - #327

Merged
zackb merged 1 commit into
zackb:mainfrom
McMajlos:feat/tray-menu
Nov 17, 2026
Merged

zackb merged 1 commit into
zackb:mainfrom
McMajlos:feat/tray-menu

Conversation

@McMajlos

Copy link
Copy Markdown
Contributor

The tray icon has no menu. Turning Bluetooth off for the iPhone means opening the window or running tether --bt-enable off, and disconnecting from the desktop's Bluetooth settings doesn't stick, because the phone reconnects immediately.

This exports a com.canonical.dbusmenu menu for the StatusNotifierItem:

  • Show Tether
  • Connect / Disconnect <iPhone name>: sends bt_set_enabled, the same as the Devices checkbox, so the bond is kept. It follows bt_status and is hidden while no iPhone is bonded.
  • Quit

Left click still toggles the window as before.

Testing: Fedora 45, GNOME with the AppIndicator extension, iPhone. Disconnect stops the link and it stays down; Connect brings it back.

Note: adds three translatable strings. clang-format wasn't available, so formatting was checked by hand against .clang-format.

The tray item had no menu, so switching Bluetooth off for the iPhone
meant opening the window or running `tether --bt-enable off`.
Disconnecting from the desktop's Bluetooth settings does not stick,
because the iPhone reconnects straight away.

Export a com.canonical.dbusmenu menu on the StatusNotifierItem with
Show Tether, Connect/Disconnect <iPhone> and Quit. The Bluetooth item
sends bt_set_enabled, the same as the Devices checkbox, so the bond is
kept. It follows bt_status and is hidden while no iPhone is bonded.
Left click still toggles the window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackb
zackb merged commit 5c0a5e7 into zackb:main Nov 17, 2026
@zackb

zackb commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Great contributions

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