Finish Hyprland Lua migration, untrack generated config outputs

Complete the move from the old .conf-style Hyprland config to Lua:

- Drop base.conf, hyprland.conf, monitors.conf and the empty
  workspaces.conf; base.lua + colors.lua are now the sources.
- gen-colors emits hypr/colors.lua globals, build.sh cats it with
  base.lua into hyprland.lua.
- Add .luarc.json so the editor picks up Hyprland's Lua stubs.
- Correct the DP-2 monitor position and drop the stale transform.

Untrack the build outputs that were gitignored yet still committed
(i3/config, sway/config, waybar/style.css, wofi/style.css) so the
ignore rules take effect; install.sh already runs gen-colors and each
build.sh, so a fresh clone regenerates them.

Also regroup .gitignore by what produces each file, refresh the docs
for the Lua layout, and drop a stray scratch dump.

Carries along in-progress config tweaks: pin the i3 keyboard layout,
make the nerd-dictation toggle match on the full command, drop the
X11-only DP-2 rotate, and add a clangd LSP setup for nvim.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
2026-09-16 16:23:22 +01:00
co-authored by Claude Opus 5
parent 5b354f172e
commit 91e2c8695f
20 changed files with 400 additions and 1748 deletions
+9 -9
View File
@@ -6,7 +6,7 @@ Dotfiles and scripts for Arch Linux (Manjaro), targeting Wayland (Hyprland / Swa
Inside `scripts/wofi/styles.css`, I have the colour css set to `/home/adamf/scripts/wofi/colors.css`, which is clearly ugly and not nice but it was quick to do.
Wofi is called in hypr/hyprland.conf and sway/swayconfig with the command `wofi --style /home/adamf/scripts/wofi/styles.css`. This is also not ideal but I couldn't find a way to get it to work with a relative path. I'm unsure when hyprland working directory is.
Wofi is called in hypr/hyprland.lua and sway/swayconfig with the command `wofi --style /home/adamf/scripts/wofi/styles.css`. This is also not ideal but I couldn't find a way to get it to work with a relative path. I'm unsure when hyprland working directory is.
## Setup
@@ -223,15 +223,15 @@ swaymsg reload # Sway
killall waybar && waybar & # Waybar
```
Generated files (committed so configs work after a fresh clone):
Generated files (gitignored; `install.sh` runs `gen-colors` before building):
| File | Format | Used by |
| ------------------- | --------------------------- | ---------------------------- |
| `hypr/colors.conf` | `$color_name = rgb(HEXVAL)` | `hyprland.conf` (source) |
| `sway/colors.conf` | `set $color_name #HEXVAL` | `swayconfig` (include) |
| `i3/colors.conf` | `set $color_name #HEXVAL` | `i3config` (include) |
| `waybar/colors.css` | CSS custom properties | `waybar/style.css` (@import) |
| `wofi/colors.css` | CSS custom properties | `wofi/style.css` (@import) |
| File | Format | Used by |
| ------------------- | ---------------------------- | ---------------------------- |
| `hypr/colors.lua` | `color_name = "rgb(HEXVAL)"` | `hyprland.lua` (built in) |
| `sway/colors.conf` | `set $color_name #HEXVAL` | `swayconfig` (include) |
| `i3/colors.conf` | `set $color_name #HEXVAL` | `i3config` (include) |
| `waybar/colors.css` | CSS custom properties | `waybar/style.css` (@import) |
| `wofi/colors.css` | CSS custom properties | `wofi/style.css` (@import) |
## Scripts