Files

2.9 KiB

hypr-dotfiles

User-owned config files for my Hyprland (HyDE Project) setups on Arch Linux.

Only files that I own are tracked here — HyDE-managed files (everything under ~/.local/share/hypr/, waybar's style.css/theme.css, etc.) are regenerated by HyDE on every update and are deliberately NOT tracked.

Layout

The config/ directory mirrors $XDG_CONFIG_HOME:

config/
├── hypr/hyprland.lua      # HyDE's user override layer (never overwritten by HyDE)
├── hypr/.luarc.json       # lua-language-server: silence "Undefined global hl" in Neovim
├── kitty/kitty.conf       # fully user-owned
├── waybar/user-style.css  # user layer; HyDE owns style.css/theme.css
└── hyprlock/hyprlock.conf

Usage

./collect.sh   # machine -> repo: copy current config files into config/
./apply.sh     # repo -> machine: copy config/ into ~/.config (timestamped .bak first)

Workflow: edit a file live on one machine, ./collect.sh && git commit, push. On the other machine: git pull && ./apply.sh.

Adding a new tracked file

  1. Create the (empty) file at its path under config/ and commit it — this declares the mapping.
  2. ./collect.sh pulls the real content in.

Only files that already exist in config/ are collected/applied, so nothing gets tracked by accident.

Hyprimate (window animation plugin)

The burger-menu animation picker also offers Hyprimate styles (Liquid, Paper, Cloth, Swarm, Bubble, Smoke, Burn, Construction) — a Hyprland plugin that animates windows as they open, move and close.

Tracked here:

  • config/hypr/lua/animations/hyprimate-*.lua — one menu item per style (user layer).
  • config/hyde/scripts/hyprimate-guard.sh — auto-loads the plugin when a hyprimate style is current and switches it off when a native animation is selected. Hooked into hyprland.lua via hl.exec_cmd.
  • config/hyde/scripts/rebuild-hyprimate.sh — rebuild after a Hyprland update.

Setup on a new machine (the plugin binary itself is NOT tracked):

git clone --depth 1 https://github.com/JustinBacher/hyprimate ~/.local/src/hyprimate
cmake -B ~/.local/src/hyprimate/build -S ~/.local/src/hyprimate -G Ninja && ninja -C ~/.local/src/hyprimate/build
hyprctl plugin load ~/.local/src/hyprimate/build/hyprimate.so

Then pick a Hyprimate style in the animation menu; the guard handles loading on future boots. Note: hyprpm is an alternative installer, but it needs sudo for its state store in /var/cache/hyprpm/; the manual build above avoids that.

Notes

  • hypr/hyprland.lua is loaded by HyDE last as the override layer. See the comments inside it for the Lua bind syntax (Hyprland 0.56+ Lua configs).
  • Waybar: only user-style.css (and user-modules/ if ever added) is safe to own; style.css/theme.css are HyDE-generated.
  • Public repo: no secrets, ever. Don't add anything containing tokens/passwords.