refactor(management): replace curses TUIs with API-backed ncp subcommands; panel/autostart/install integration

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-11 07:25:08 -05:00
parent f4f77c5196
commit 53eaed4c7f
792 changed files with 2782 additions and 2240 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Genmon bluetooth applet — PNG icon + status, click opens blueman-manager.
# Replaces blueman's StatusNotifier tray icon (which the panel renders too small);
# blueman-applet still runs headless for the agent — see bin/panel/install.sh.
NEXUS_ROOT="$(cd "$(dirname "$(realpath "$0")")/../.." && pwd)"
ICON_DIR="$NEXUS_ROOT/assets/panel-icons"
powered=$(bluetoothctl show 2>/dev/null | awk -F': ' '/Powered:/{print $2; exit}')
connected=$(bluetoothctl devices Connected 2>/dev/null | grep -c '^Device')
if [ "$powered" != "yes" ]; then
echo "<img>${ICON_DIR}/bluetooth-disabled.png</img>"
echo "<tool>Bluetooth: off</tool>"
elif [ "$connected" -gt 0 ]; then
names=$(bluetoothctl devices Connected 2>/dev/null | sed 's/^Device [0-9A-F:]* //')
echo "<img>${ICON_DIR}/bluetooth-active.png</img>"
echo "<tool>Bluetooth: connected
${names}</tool>"
else
echo "<img>${ICON_DIR}/bluetooth-online.png</img>"
echo "<tool>Bluetooth: on (no devices connected)</tool>"
fi
echo "<click>blueman-manager</click>"