kde/apply.sh installs Krohnkite tiling, creates 8 virtual desktops, and applies Hyprland-matching global shortcuts live via kglobalaccel D-Bus (kde/shortcuts.py). install.sh/uninstall.sh gain a 'kde' target. Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
2.4 KiB
Markdown
39 lines
2.4 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
|
|
- **KDE Plasma (Steam Deck)**: `kde/` - `apply.sh` installs Krohnkite and runs `shortcuts.py`, which sets Hyprland-style global shortcuts live via kglobalaccel D-Bus (don't hand-edit `kglobalshortcutsrc`; edit the `BINDINGS` table). Avoid `KGlobalAccel.globalShortcutsByKey` over D-Bus because a malformed call crashes kwin_wayland
|
|
- **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
|