Skip to content
opigodPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dotfiles

Personal CachyOS dotfiles for a Hyprland (Wayland) session with DMS (Dux Modular Shell): Ghostty, Alacritty, fish, Hyprland, DMS, AstroNvim, Zed, OpenCode, and the Bibata cursor theme.

Most directories are symlinked into the live config, so editing a file here changes the running desktop immediately.

KineticWE, Noctalia, and the KDE Plasma packages were removed on 2026-11-20. Their configs remain in this repo as an archive only; Hyprland + DMS is the only session. See Archived KineticWE.

Install

git clone https://github.com/opigod/dotfiles.git ~/dotfiles
cd ~/dotfiles
./install.sh

install.sh is idempotent and non-destructive:

  • creates the config symlinks and copies the files that cannot be symlinked;
  • keeps existing files by default, and with --force moves them to <path>.bak.<timestamp> before replacing them;
  • installs the cursor theme with sudo (it writes to /usr/share/icons);
  • activates the tracked pre-commit guard, which rejects staged API keys, tokens, and passwords (empty placeholders are fine);
  • never touches ~/.config/opencode/service.json or ~/.config/dms/plugin_settings.json.

Useful flags: --dry-run, --yes, --force, --skip-cursor, --skip-opencode. See ./install.sh --help.

What goes where

Repository Live path Kind
ghostty/ ~/.config/ghostty symlink
hypr/ ~/.config/hypr symlink
dms/ ~/.config/dms symlink (runtime files ignored)
alacritty/ ~/.config/alacritty symlink
fish/ ~/.config/fish symlink (fish_variables stays local)
autostart/ ~/.config/autostart symlink
xsettingsd/ ~/.config/xsettingsd symlink
environment.d/90-dms.conf ~/.config/environment.d/90-dms.conf file symlink
mimeapps.list ~/.config/mimeapps.list file symlink
nvim/ ~/.config/nvim symlink
zed-stuff/zed/ ~/.config/zed symlink
zed-stuff/vesper-blur/ ~/.local/share/zed/extensions/installed/vesper-blur symlink
Bibata-Modern-Ice/ /usr/share/icons/Bibata-Modern-Ice copy (needs root)
opencode/cli.json ~/.config/opencode/cli.json symlink
opencode/opencode.json ~/.config/opencode/opencode.json symlink
opencode/plugins/current-session-cost/ ~/opencode-plugins/current-session-cost symlink

Log out and back in after installing so Hyprland, DMS, and Zed reload the config. OpenCode reads its config when it next starts.

Manual deploy

If you prefer not to run the installer, run this from the repository root:

mkdir -p ~/.config \
         ~/.config/environment.d \
         ~/.local/share/zed/extensions/installed \
         ~/.config/opencode \
         ~/opencode-plugins

ln -sfn "$PWD/ghostty" ~/.config/ghostty
ln -sfn "$PWD/hypr" ~/.config/hypr
ln -sfn "$PWD/dms" ~/.config/dms
ln -sfn "$PWD/alacritty" ~/.config/alacritty
ln -sfn "$PWD/fish" ~/.config/fish
ln -sfn "$PWD/autostart" ~/.config/autostart
ln -sfn "$PWD/xsettingsd" ~/.config/xsettingsd
ln -sfn "$PWD/environment.d/90-dms.conf" ~/.config/environment.d/90-dms.conf
ln -sfn "$PWD/mimeapps.list" ~/.config/mimeapps.list
ln -sfn "$PWD/nvim" ~/.config/nvim
ln -sfn "$PWD/zed-stuff/zed" ~/.config/zed
ln -sfn "$PWD/zed-stuff/vesper-blur" \
  ~/.local/share/zed/extensions/installed/vesper-blur

sudo cp -r Bibata-Modern-Ice /usr/share/icons/   # -r is required; needs root

OpenCode links:

ln -sfn "$PWD/opencode/cli.json" ~/.config/opencode/cli.json
ln -sfn "$PWD/opencode/opencode.json" ~/.config/opencode/opencode.json
ln -sfn "$PWD/opencode/plugins/current-session-cost" \
  ~/opencode-plugins/current-session-cost

~/.config/opencode/service.json is intentionally not tracked: it contains the OpenCode service password. Keep it machine-local. The npm plugins named in cli.json and opencode.json are fetched by OpenCode itself; only the local current-session-cost plugin source lives here.

Hyprland and DMS

  • hypr/hyprland.lua is the hand-edited base config. hypr/dms/*.lua is generated by DMS (colors, input, layout, outputs, window rules); DMS setup also replaces hypr/dms/binds.lua with its stock keybinds. Put personal overrides in hypr/dms/binds-user.lua, which DMS never overwrites.
  • hypr/.dms-backups/ is ignored: those are DMS's own copies of replaced configs.
  • DMS settings live in dms/settings.json and are written by the shell GUI. Because the directory is symlinked, GUI changes land in this repo. DMS uses atomic writes, which is why the directory (not individual files) is linked.
  • dms/plugins.lock.json records installed plugins; dms/plugins/ is a re-downloadable cache and is ignored.
  • dms/plugin_settings.json is ignored: it contains the Wallhaven API key. Never stage or commit it.
  • Reload after editing: hyprctl reload. Check for errors with hyprctl configerrors.

Git hooks

install.sh points core.hooksPath at the tracked .githooks/ directory. Its pre-commit hook scans staged files for non-empty API keys, tokens, secrets, and passwords, and rejects the commit before they enter history. Empty placeholders such as api_key = "" and variable references such as "${TOKEN}" are allowed. The hook is shell + awk; no Python is required.

Enable it manually with:

git config core.hooksPath .githooks

If it flags a false positive, bypass it once with git commit --no-verify.

Archived KineticWE

KineticWE, Noctalia, and KDE Plasma were removed on 2026-11-20. install.sh no longer links or copies any of them. The files are kept only as an archive:

  • kineticwe/*.kwe, decoration.colors, kglobalaccelrc, kglobalshortcutsrc, kineticweoutputconfig.json, lsfg-vk/conf.toml, and autostart-kwe-command-1.desktop are snapshots from the old session. kdeglobals is now a regular file, not the old absolute symlink; it remains gitignored because it is machine-specific.
  • noctalia-full-config.toml is the old export. noctalia-full-config.live.toml is a sanitized copy of the final live Noctalia settings with both API keys redacted. Do not treat either as a deployable config.
  • The output snapshots are stale. Query the running compositor with hyprctl monitors instead of trusting kineticweoutputconfig.json.

Notes

  • Zed settings and keymaps are JSONC, so comments and trailing commas are valid; strict JSON tools will reject them.
  • Waterfox (waterfox-bin from the CachyOS repo) is the default browser. install.sh does not install or update browsers. Firefox Nightly was removed from the repo and the machine; its profiles stay in ~/.config/mozilla/firefox/ as a fallback.
  • DMS's Matugen hooks generate theme files such as ghostty/themes/dankcolors, alacritty/dank-theme.toml, and zed-stuff/zed/themes/dank-zed-theme.json. They are tracked for reference but can be rewritten by DMS.
  • Application state (caches, logs, service passwords) is intentionally not tracked; only the config groups listed above are.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages