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.
1.7 KiB
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
- Create the (empty) file at its path under
config/and commit it — this declares the mapping. ./collect.shpulls the real content in.
Only files that already exist in config/ are collected/applied, so nothing
gets tracked by accident.
Notes
hypr/hyprland.luais 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(anduser-modules/if ever added) is safe to own;style.css/theme.cssare HyDE-generated. - Public repo: no secrets, ever. Don't add anything containing tokens/passwords.