CachyOS + KDE ❤️ Kanagawa: my chezmoi setup.
It only works on Arch-based systems: the scripts use pacman and yay.
- Shell: fish with vi mode, oh-my-posh, zoxide and yazi
- Git: git config, delta, gitui and GitAlias
- Desktop: Plasma with the Kanagawa Wave theme, icons, cursors and a profile picture
- Login: SDDM with Silent and the Kanagawa presets
- Apps: Spotify (Spicetify), Zen (Sine mods), btop and bat
- Packages: repos, AUR and CachyOS gaming (Steam, Lutris, Heroic, Proton)
Neovim and WezTerm have their own repos. The first apply clones them into ~/.config, then chezmoi leaves them alone.
Plasma writes its settings back to disk on logout, which undoes part of an apply run inside a session (the panel layout especially). So run it from a text console: log out, press Ctrl+Alt+F3, log in and run
sudo pacman -S chezmoi
chezmoi init --apply sravioli/dotfilesIt asks for your sudo password a few times and takes a while, mostly AUR builds. A package that fails to build doesn't stop the apply; the failures are listed at the end and again after every chezmoi apply until they're installed. Reboot from the console afterwards to get the new login screen.
If Ctrl+Alt+F3 doesn't switch to the console
- In Konsole, run
sudo chvt 3. - Log in there.
- Stop the Plasma session, which would otherwise overwrite the apply when it ends:
sudo systemctl stop display-manager. - Run the install commands above.
The scripts in .chezmoiscripts/ handle what lives outside the home folder:
- rank the pacman mirrors, like "Rank mirrors" in CachyOS Hello
- install the packages
- install oh-my-posh with its upstream installer, the first time only
- make SDDM the login screen (recent CachyOS ISOs default to Plasma Login Manager) and theme it
- patch Spotify with Spicetify (Text theme, Marketplace), without Spotify having been opened first
- install Sine in Zen with the mods from
zen/sine-mods/; Sine keeps them updated afterwards - apply the Kanagawa Wave global theme once, if a Plasma session is running (Plasma keeps its settings in
~/.config/kdedefaults, which chezmoi doesn't track) - set the profile picture from
~/.face
Themes for fish, delta, bat, btop, gitui and oh-my-posh come from kanagawa-community via .chezmoiexternal.toml, pinned to a tag or commit. Change the pin there to update.
- Login screen preset (
kanagawa-dragon,kanagawa-lotus):preset=in.chezmoiscripts/run_onchange_after_set-sddm-theme.sh.tmpl - Prompt theme or options:
extendsandvarindot_config/oh-my-posh/config.omp.json(variantswave,dragon,lotus,dynamic) - gitui theme: the
theme.ronlink indot_config/gitui/
The fish config in dot_config/fish/ is split by job:
conf.d/aliases.fish: aliasesconf.d/path.fish: PATHconf.d/prompt.fish: the promptconf.d/vi.fish: vi mode;jkleaves insert mode,ctrl-rand?search historyconf.d/surround.fish: nvim-surround keys:ds",cs"',ysiw),yss(, visualS(; any punctuation works, plus tags withtand calls withffunctions/: one file per function, autoloaded;yis the yazi wrapper that changes to the directory you quit in
system-upgrade updates packages, plugins, oh-my-posh and Spotify's patch in one go.
After changing settings in KDE System Settings, copy them back:
chezmoi re-addTo save Zen mods and settings you changed in Sine:
rsync -a --delete --exclude '*.zip' ~/.config/zen/*.Default\ \(release\)/chrome/sine-mods/ ~/.local/share/chezmoi/zen/sine-mods/
~/.local/share/chezmoi/zen/export-prefs.shThe settings are applied on the next chezmoi apply, while Zen is closed. API keys for Tidy Downloads' AI renaming are never saved.
From a clean main, cocogitto works out the version from the commit messages, tags the latest commit and pushes main and the tag:
cog bump --auto # the first release: cog bump --version 1.0.0The tag starts the release workflow, which publishes a GitHub release with the cog changelog notes.
Install what the tests need (chezmoi, podman for the container, QEMU and UEFI firmware for the VM):
sudo pacman -S --needed chezmoi podman qemu-desktop edk2-ovmftest/check.sh(seconds): renders and syntax-checks every script, then applies into a temporary folder. Runs in GitHub Actions on every push and as my git pre-commit hook.test/container.sh(slow): full apply, packages included, as a new user in a CachyOS podman container. No desktop.test/vm.sh install, thentest/vm.sh(slowest): boots CachyOS in QEMU to check the desktop and login screen.installmakes a base disk from the latest ISO; each run then boots a throwaway copy, so every run is a fresh install. Images go in~/vms(VM_DIRchanges that).
The VM sees the repo as the 9p share dotfiles. Mount it and apply from a text console, like on a real machine:
sudo mount -t 9p -o trans=virtio,ro dotfiles /mnt
chezmoi init --apply --source /mnt