Ensure it only matches the module activation

This commit is contained in:
David Heinemeier Hansson
2026-01-06 13:26:37 +01:00
parent 41c6048758
commit e08ef5866a

View File

@@ -19,7 +19,7 @@ fi
# Add voxtype to modules-center if not present # Add voxtype to modules-center if not present
if ! grep -q "custom/voxtype" "$CONFIG_FILE" 2>/dev/null; then if ! grep -q "custom/voxtype" "$CONFIG_FILE" 2>/dev/null; then
# Add to modules-center array # Add to modules-center array
sed -i 's/"custom\/screenrecording-indicator"/"custom\/voxtype", "custom\/screenrecording-indicator"/' "$CONFIG_FILE" sed -i 's/"custom\/screenrecording-indicator"]/"custom\/voxtype", "custom\/screenrecording-indicator"]/' "$CONFIG_FILE"
# Add voxtype config block before tray config # Add voxtype config block before tray config
sed -i '/"tray": {/i\ "custom/voxtype": {\n "exec": "omarchy-voxtype-status",\n "return-type": "json",\n "format": "{icon}",\n "format-icons": {\n "idle": "",\n "recording": "󰍬",\n "transcribing": "󰔟"\n },\n "tooltip": true,\n "on-click-right": "omarchy-voxtype-config",\n "on-click": "omarchy-voxtype-model"\n },' "$CONFIG_FILE" sed -i '/"tray": {/i\ "custom/voxtype": {\n "exec": "omarchy-voxtype-status",\n "return-type": "json",\n "format": "{icon}",\n "format-icons": {\n "idle": "",\n "recording": "󰍬",\n "transcribing": "󰔟"\n },\n "tooltip": true,\n "on-click-right": "omarchy-voxtype-config",\n "on-click": "omarchy-voxtype-model"\n },' "$CONFIG_FILE"