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]>
38 lines
2.1 KiB
Markdown
38 lines
2.1 KiB
Markdown
# CLAUDE.md
|
|
|
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
|
|
## Overview
|
|
|
|
This is a dotfiles/config repository for Arch Linux (Manjaro) using `yay` as the package manager. Configs are installed by symlinking or sourcing from `~/scripts/` into their standard locations. The repo targets Wayland-based desktops (Hyprland and Sway) with an i3 fallback for X11.
|
|
|
|
## Repository Structure
|
|
|
|
- **Window managers**: `hyprland/`, `sway/`, `i3/` - config files for each WM
|
|
- **Waybar**: `waybar/` - separate config JSONs per WM (`waybar_hyprland_config.json`, `waybar_sway_config.json`) plus shared `waybar_style.css`
|
|
- **Shell**: `bashrc`, `zshrc` - sourced from the user's dotfiles, not used directly
|
|
- **Terminal**: `alacritty.toml` (imported via alacritty's import system), `kitty.conf`
|
|
- **Scripts**: `sh/` - shell utilities added to PATH (`sharefile`, `getfile`, `waybar-history`)
|
|
- **Submodule**: `hatsune-miku-windows-linux-cursors` - cursor theme (init with `git submodule update --init --recursive`)
|
|
- **Packages**: `packages.txt` - list of packages installed via `yay -S`
|
|
|
|
## Build System
|
|
|
|
Some configs are built by concatenating a `colors.*` file with a `base.*` file. The build outputs are gitignored. **Always edit the source (`base.*`) files, never the built outputs.**
|
|
|
|
| Component | Sources | Build output | Build command |
|
|
|-----------|---------|--------------|---------------|
|
|
| Hyprland | `hypr/colors.lua` + `hypr/base.lua` | `hypr/hyprland.lua` | `hypr/build.sh` |
|
|
| Waybar CSS | `waybar/colors.css` + `waybar/base.css` | `waybar/style.css` | `waybar/build.sh` |
|
|
|
|
After editing a base file, run the corresponding `build.sh` to regenerate the output.
|
|
|
|
## Key Conventions
|
|
|
|
- Configs are symlinked into `~/.config/` (see README.md for exact symlink commands per component)
|
|
- Shell configs (`bashrc`, `zshrc`) are sourced, not symlinked
|
|
- `alacritty.toml` uses alacritty's import mechanism rather than symlinking
|
|
- Hyprland is the primary/active WM (most recent changes)
|
|
- `$mod` in WM configs refers to the Super/Windows key
|
|
- Keybindings use vim-style hjkl navigation across all WMs and tmux
|