How To Fix Bluetooth Icon Kept Disappearing From The Omarchy Bar

# Bluetooth icon kept disappearing from the bar

## Issue

Turning Bluetooth off made its icon vanish from the Quickshell menu bar.

**Root cause:** Omarchy turns Bluetooth off via `rfkill block bluetooth`
(`omarchy-bluetooth-power`). Blocking makes the radio leave BlueZ entirely, so
`Bluetooth.defaultAdapter` becomes `null`. The stock `omarchy.bluetooth` widget
was hidden whenever there was no adapter:

- bar icon: `visible: adapter !== null`
- panel power switch: `visible: !!root.adapter`

With the adapter gone, both hid — leaving no way to turn Bluetooth back on from
the bar.

## Fix

Cloned the plugin (per Omarchy convention, never edit `/usr/share/omarchy/`) and
edited three lines in
`~/.config/omarchy/plugins/operator1.bluetooth/Panel.qml`:

1. **Icon** — `visible: adapter !== null` → `visible: true` (always show).
2. **Icon glyph** — when there's no adapter, show the dimmed "off" glyph `󰂲`
   instead of an empty string (was a blank gap).
3. **Power switch** — `visible: !!root.adapter` → `visible: true`.
   `checked` still reflects the real on/off state, and `toggleBluetooth()` was
   unguarded so it can turn Bluetooth back on when the adapter is absent.

## Result

Now toggling Bluetooth off keeps the dimmed icon in the bar and the power switch
in the panel, so Bluetooth can be turned back on from the bar.

Note: `QS_DISABLE_FILE_WATCHER=1`, so QML edits to the clone only take effect
after `omarchy restart shell`.

Comments

Popular Posts