Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bin/omarchy-install-ai-claude
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# omarchy:summary=Install the Claude desktop app
# omarchy:requires-sudo=true

set -euo pipefail

echo "Installing Claude..."
omarchy-pkg-add claude-desktop

echo "Opening Claude..."
setsid uwsm-app -- /usr/bin/claude-desktop >/dev/null 2>&1 &

echo ""
echo "Claude has been installed."
30 changes: 30 additions & 0 deletions bin/omarchy-remove-ai-claude
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# omarchy:summary=Remove the Claude desktop app along with its configuration and caches.
# omarchy:requires-sudo=true

# -u so an unset HOME is an error rather than a set of rm -rf paths rooted at /.
set -euo pipefail

# The app rewrites ~/.config/Claude for as long as it runs, so a removal that
# leaves it running deletes the directory and watches it come straight back.
pkill -x claude-desktop || true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
timeout_expired=124
wait_status=0
timeout 5 pidwait -x claude-desktop || wait_status=$?
if (( wait_status == timeout_expired )); then
pkill -KILL -x claude-desktop || true
timeout 2 pidwait -x claude-desktop || true
fi

omarchy-pkg-drop claude-desktop

# Not ~/.claude, ~/.claude.json, or ~/.cache/claude-cli-nodejs: those belong
# to the Claude Code CLI, which ships in a different package that survives
# this one. The desktop app keeps its state in its own Electron directories.
rm -rf \
"$HOME/.config/Claude" \
"$HOME/.cache/Claude"
Comment thread
mark-groves marked this conversation as resolved.
Resolved

echo ""
echo "Claude has been removed."
19 changes: 19 additions & 0 deletions config/wireplumber/wireplumber.conf.d/kef-lsx-no-suspend.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Never suspend the KEF LSX II LT USB sink.
## The speaker's USB firmware stops answering control requests when the host
## stops the stream after idle (usb_set_interface -110), and only a replug
## recovers it. Keeping the stream open avoids the trigger.

monitor.alsa.rules = [
{
matches = [
{
node.name = "~alsa_output.usb-KEF_LSX_II_LT.*"
}
]
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
}
}
]
1 change: 1 addition & 0 deletions default/fonts/omarchy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The private-use glyphs in `omarchy.ttf` are:
- `U+E90B` — Perplexity, from <https://simpleicons.org/icons/perplexity.svg>
- `U+E90C` — OpenClaw, traced from the lobster mascot the openclaw package ships as `dist/control-ui/favicon.svg`, since upstream publishes no monochrome SVG
- `U+E90D` — Cursor, from <https://simpleicons.org/icons/cursor.svg>
- `U+E90E` — Claude, from <https://simpleicons.org/icons/claude.svg>

The agent marks are monochrome so the menu can render them using the active
theme's foreground and selection colors.
Binary file modified default/fonts/omarchy/omarchy.ttf
Binary file not shown.
2 changes: 2 additions & 0 deletions default/omarchy/omarchy-menu.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
"install.terminal.ghostty": {"icon":"","label":"Ghostty","disabled":"omarchy-pkg-present ghostty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal ghostty'"},
"install.terminal.kitty": {"icon":"","label":"Kitty","disabled":"omarchy-pkg-present kitty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal kitty'"},
"install.ai.chatgpt": {"icon":"","iconFont":"omarchy","label":"ChatGPT Desktop","disabled":"omarchy-pkg-present openai-codex-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-ai-chatgpt"},
"install.ai.claude": {"icon":"","iconFont":"omarchy","label":"Claude Desktop","disabled":"omarchy-pkg-present claude-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-ai-claude"},
"install.ai.dictation": {"icon":"","label":"Dictation","disabled":"omarchy-pkg-present voxtype-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install"},
"install.ai.grok-bot": {"icon":"","iconFont":"omarchy","label":"Grok Bot","disabled":"omarchy-pkg-present grok-bot","action":"omarchy-install-and-launch 'Grok Bot' grok-bot grok-bot"},
"install.ai.hermes": {"icon":"","iconFont":"omarchy","label":"Hermes Desktop","disabled":"omarchy-pkg-present hermes-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-ai-hermes"},
Expand Down Expand Up @@ -309,6 +310,7 @@
"remove.service.dropbox": {"icon":"","label":"Dropbox","when":"omarchy-pkg-present dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-service-dropbox"},
"remove.service.tailscale": {"icon":"","label":"Tailscale","when":"omarchy-pkg-present tailscale","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-service-tailscale"},
"remove.ai.chatgpt": {"icon":"","iconFont":"omarchy","label":"ChatGPT Desktop","when":"omarchy-pkg-present openai-codex-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-ai-chatgpt"},
"remove.ai.claude": {"icon":"","iconFont":"omarchy","label":"Claude Desktop","when":"omarchy-pkg-present claude-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-ai-claude"},
"remove.ai.dictation": {"icon":"","label":"Dictation","when":"omarchy-pkg-present voxtype-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-remove"},
"remove.ai.grok-bot": {"icon":"","iconFont":"omarchy","label":"Grok Bot","when":"omarchy-pkg-present grok-bot","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-ai-grok-bot"},
"remove.ai.lm-studio": {"icon":"","iconFont":"omarchy","label":"LM Studio","when":"omarchy-pkg-present lmstudio-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-ai-lm-studio"},
Expand Down
2 changes: 1 addition & 1 deletion manual/17-ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Crashes can also be silenced one program at a time, which is what the diagnosis

### Desktop apps

The _Install > AI_ menu also carries a few graphical AI apps: the ChatGPT desktop app, Grok Bot for chatting with xAI's models, Hermes Desktop, OpenClaw, and the Perplexity desktop app.
The _Install > AI_ menu also carries a few graphical AI apps: the ChatGPT desktop app, the Claude desktop app (Anthropic's Linux beta, with Chat, Cowork, and Claude Code tabs), Grok Bot for chatting with xAI's models, Hermes Desktop, OpenClaw, and the Perplexity desktop app.

Hermes Desktop is the one to know about, because there is only ever one Hermes on a machine. The app only runs against a runtime built from its own commit, so it installs one of its own under `~/.hermes` on first launch, which takes a few minutes and shows its own progress. From then on that is the Hermes the terminal `hermes` command and the default agent use too, whichever order you installed them in. Installing it also hands Hermes the Omarchy theme as a skin named `omarchy`, which every Hermes surface follows as you switch themes; pick another under Hermes' Appearance settings or with `/skin` if you'd rather it didn't, and Omarchy leaves that choice alone. Removing the app under _Remove > AI_ takes that runtime with it, and keeps your chats, memories, and the skills Hermes wrote for itself unless you tell it otherwise: it asks, defaulting to no, whether that data and your connection settings should go too.

Expand Down
4 changes: 4 additions & 0 deletions migrations/1789091250.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo "Activate the Omarchy theme for existing T3 Code installs"

omarchy-pkg-present t3code-bin || exit 0
omarchy-install-ai-t3-code
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
9 changes: 9 additions & 0 deletions migrations/1789130779.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo "Keep the KEF LSX II LT USB sink from suspending"

conf="wireplumber/wireplumber.conf.d/kef-lsx-no-suspend.conf"

if [[ ! -f "$HOME/.config/$conf" ]]; then
omarchy-refresh-config "$conf"
# WirePlumber only reads conf.d at startup; restart it if it is running.
systemctl --user try-restart wireplumber.service 2>/dev/null || true
fi
2 changes: 1 addition & 1 deletion test/shell.d/menu-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -641,5 +641,5 @@ assert(
JS

font_charset=$(fc-query --format='%{charset}' "$ROOT/default/fonts/omarchy/omarchy.ttf")
[[ $font_charset == *"e900-e90d"* ]] || fail "Omarchy icon font includes every custom menu glyph"
[[ $font_charset == *"e900-e90e"* ]] || fail "Omarchy icon font includes every custom menu glyph"
pass "Omarchy icon font includes the official agent marks"
86 changes: 85 additions & 1 deletion test/shell.d/remove-ai-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"

tmp_dir="$(mktemp -d)"
trap 'rm -rf "$tmp_dir"' EXIT
trap '[[ -f $tmp_dir/fake-claude.pid ]] && kill -9 $(<"$tmp_dir/fake-claude.pid") 2>/dev/null || true; rm -rf "$tmp_dir"' EXIT

mkdir -p "$tmp_dir/bin"

Expand All @@ -15,6 +15,39 @@ printf 'drop:%s\n' "$*" >>"$TEST_LOG"
SCRIPT
chmod +x "$tmp_dir/bin/omarchy-pkg-drop"

# omarchy-remove-ai-claude quits the running app before deleting its state;
# a real pkill here would take the developer's own Claude with it, and a
# real pidwait would wait for that process.
cat >"$tmp_dir/bin/pkill" <<'SCRIPT'
#!/bin/bash
printf 'pkill:%s\n' "$*" >>"$TEST_LOG"
if [[ -n ${FAKE_CLAUDE_PID_FILE:-} && -f $FAKE_CLAUDE_PID_FILE ]]; then
pid=$(<"$FAKE_CLAUDE_PID_FILE")
if [[ -n $pid ]]; then
if [[ $* == *-9* || $* == *KILL* ]]; then
kill -9 "$pid" 2>/dev/null || true
else
kill -TERM "$pid" 2>/dev/null || true
fi
fi
fi
SCRIPT
chmod +x "$tmp_dir/bin/pkill"

cat >"$tmp_dir/bin/pidwait" <<'SCRIPT'
#!/bin/bash
printf 'pidwait:%s\n' "$*" >>"$TEST_LOG"
if [[ -n ${FAKE_CLAUDE_PID_FILE:-} && -f $FAKE_CLAUDE_PID_FILE ]]; then
pid=$(<"$FAKE_CLAUDE_PID_FILE")
if [[ -n $pid ]]; then
while kill -0 "$pid" 2>/dev/null; do
sleep 0.05
done
fi
fi
SCRIPT
chmod +x "$tmp_dir/bin/pidwait"

# omarchy-remove-ai-perplexity asks through gum whether the user's data goes
# too. The stub answers "no" unless a test says otherwise and logs the call: a
# real gum would hang the run, and one that answered "yes" on its own would be
Expand Down Expand Up @@ -55,6 +88,57 @@ pass "ChatGPT removal keeps the Codex CLI's runtime cache"
[[ -d $HOME/.codex ]] || fail "ChatGPT removal keeps the Codex CLI's config"
pass "ChatGPT removal keeps the Codex CLI's config"

fresh_home
mkdir -p "$HOME/.config/Claude" "$HOME/.cache/Claude" "$HOME/.cache/claude-cli-nodejs" "$HOME/.claude"
touch "$HOME/.claude.json"
"$ROOT/bin/omarchy-remove-ai-claude" >/dev/null

for gone in .config/Claude .cache/Claude; do
[[ ! -e $HOME/$gone ]] || fail "Claude removal deletes the desktop app's config and caches" "$gone"
done
pass "Claude removal deletes the desktop app's config and caches"

for kept in .claude .claude.json .cache/claude-cli-nodejs; do
[[ -e $HOME/$kept ]] || fail "Claude removal keeps the Claude Code CLI's state" "$kept"
done
pass "Claude removal keeps the Claude Code CLI's state"

grep -qx 'pkill:-x claude-desktop' "$TEST_LOG" || fail "Claude removal quits the running app before deleting its state"
pass "Claude removal quits the running app before deleting its state"

fresh_home
mkdir -p "$HOME/.config/Claude" "$HOME/.cache/Claude"
export FAKE_CLAUDE_PID_FILE="$tmp_dir/fake-claude.pid"
(
end=0
trap 'end=1' TERM
while true; do
mkdir -p "$HOME/.config/Claude"
printf rewritten >"$HOME/.config/Claude/still-here"
if (( end )); then
sleep 0.3
mkdir -p "$HOME/.config/Claude"
printf rewritten >"$HOME/.config/Claude/still-here"
exit 0
fi
sleep 0.05
done
) &
echo $! >"$FAKE_CLAUDE_PID_FILE"

"$ROOT/bin/omarchy-remove-ai-claude" >/dev/null

sleep 0.5
[[ ! -e $HOME/.config/Claude ]] || fail "Claude removal waits for the app to exit before deleting its config"
pass "Claude removal waits for the app to exit before deleting its config"

fake_pid=$(<"$FAKE_CLAUDE_PID_FILE")
if kill -0 "$fake_pid" 2>/dev/null; then
kill -9 "$fake_pid" 2>/dev/null || true
fail "Claude removal leaves the desktop process running"
fi
unset FAKE_CLAUDE_PID_FILE

# LM Studio's models follow a relocatable home, named only by the pointer file.
fresh_home
mkdir -p "$tmp_dir/relocated-models/models"
Expand Down