Files
hypr-dotfiles/README.md
T
hermes ad32aef557 Add .luarc.json to silence lua-language-server 'Undefined global hl'
Hyprland injects hl/hyde/__require as globals at runtime; the LSP lints
against stock Lua 5.4 and flags every use. Declaring them as known
globals in ~/.config/hypr/.luarc.json clears the diagnostics for all
Lua files in that directory.
2026-11-01 23:09:49 +00:00

1.7 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.

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.