Stop Walker's elephant file indexer from thrashing the disk on Omarchy 3
#6025 (Omarchy 3.8.1, elephant-files 2.21.0-1) supports every figure and the workaround verbatim. dhh closed it because Quattro replaces Walker and Elephant. omacom/omarchy-pkgs pkgbuilds/omarchy-walker/PKGBUILD lists elephant-files in depends, so the -Rdd danger stands. v3.8.4 config/walker/config.toml has default = desktopapplications, websearch and the exact '.' -> files prefix block, and v3.8.4 install/first-run/elephant.sh shows the unit is elephant.service. The 3.x branch is correct. The Omarchy 4 line is incomplete for upgraded machines: quattro's bin/omarchy-upgrade-to-quattro removes omarchy-walker and every elephant-* package and deletes ~/.config/elephant, but nothing in it or in the 4.0.4-1 migrations touches ~/.cache/elephant, so an upgraded machine can keep a multi-GB files.db. Fix extended with that cleanup. Nothing was exercised.
pacman -Rdd skips the dependency check and leaves omarchy-walker with an unsatisfied dependency. The next upgrade of omarchy-walker reinstalls elephant-files, so after each omarchy update check pacman -Q elephant-files and repeat the removal if it is back. Nothing else is removed, and the indexer database under ~/.cache/elephant/ is only a cache.
Symptom
Omarchy 3.x: an idle laptop has a load average around 8 while the CPU is 95% idle. iotop shows constant writes. Interactivity is sluggish, worst on a LUKS-encrypted btrfs install, with many kcryptd and btrfs-endio-meta kworkers. ~/.cache/elephant/files.db is over a gigabyte, and the elephant process has written tens of GB since boot.
Cause
The omarchy-walker package pulls in elephant-files, the provider behind Walker's . file-search prefix. It keeps a SQLite index of the filesystem at ~/.cache/elephant/files.db. One report found a 1.6 GB index and about 34 GB of writes over 11 days, with WAL churn even when idle and even with watch=false in ~/.config/elephant/files.toml. File search is not in Walker's default providers, so most users get the cost without using the feature.
Fix
Omarchy 3.x, the reporter's workaround. It removes only the files provider, and Walker keeps apps, calculator, clipboard, web search and symbols:
systemctl --user stop elephant
rm -f ~/.cache/elephant/files.db*
sudo pacman -Rdd elephant-files
Then delete this block from ~/.config/walker/config.toml:
[[providers.prefixes]]
prefix = "."
provider = "files"
systemctl --user start elephant
omarchy-restart-walker
Omarchy 4: Walker and Elephant are gone, replaced by the shell's own launcher. omarchy-upgrade-to-quattro removes omarchy-walker and every elephant-* package and deletes ~/.config/elephant, but it leaves ~/.cache/elephant, so a machine upgraded from 3.x can still carry the old index. It is only a cache. Check that the packages are gone, then delete it:
pacman -Q elephant elephant-files
du -sh ~/.cache/elephant
rm -rf ~/.cache/elephant
Run the rm only when pacman -Q reports both packages as not found.
Verify
pacman -Q elephant-files
ls ~/.cache/elephant/
The package is not found, no files.db reappears, and the load average drops back near zero when idle.