diff --git a/CLAUDE.md b/CLAUDE.md index 567030a..e444f08 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,7 @@ This is a dotfiles/config repository for Arch Linux (Manjaro) using `yay` as the - **Window managers**: `hypr/`, `sway/`, `i3/` - config files for each WM - **Hyprland cursor follow + popups**: `hypr/cursor_follow.lua` (required from `base.lua`) keeps a floating window glued beside the mouse cursor (PiP videos, `$mod+z`) and handles the `$mod+a` popups: the `popups` table maps window classes to sizes and whether they follow until Enter is pressed (a `non_consuming` Return bind pauses them; `stay_focused` holds keyboard focus while following, since `follow_mouse = 1`). Opening the Kando menu also pauses a following popup and hands focus to the menu, since the menu needs the keyboard to see SUPER released. `hypr/popup.sh ` launches each popup. It also starts Kando on `hyprland.start` and keeps xpad sticky notes in `special:scratchpad` -- **Pie menu**: `kando/menus.json` (the `popups` menu, items run `popup.sh`) and `kando/config.json` (theme), file-symlinked into `~/.config/kando` (the rest of that dir is Kando runtime state). Kando writes settings-window edits through the symlinks, and watches the files, so edits here apply live. Its Hyprland shortcut ID is `kando:popups` (`hl.dsp.global("kando:popups")`); the launcher needs `KANDO_OZONE_PLATFORM=wayland`, otherwise it runs under XWayland +- **Pie menu**: `kando/menus.json` (the `popups` menu, items run `popup.sh`) and `kando/config.json` (theme), file-symlinked into `~/.config/kando` (the rest of that dir is Kando runtime state). Kando writes settings-window edits through the symlinks, and watches the files, so edits here apply live. Its Hyprland shortcut ID is `menu.kando.Kando:popups` (`hl.dsp.global("menu.kando.Kando:popups")`; the app ID is the desktop file name, not `kando`, and `hyprctl globalshortcuts` shows it); the launcher needs `KANDO_OZONE_PLATFORM=wayland`, otherwise it runs under XWayland - **AI popups**: `hypr/aichat/config.yaml` (model `claude:claude-haiku-5-5`, `repl_prelude: temp:quick`, thinking disabled via `patch` so no empty `` block) and `hypr/aichat/roles/quick.md` (short answers; code requests get library + functions until asked for the code). `popup.sh` sets `AICHAT_CONFIG_FILE`/`AICHAT_ROLES_DIR`; the API key is only in `~/.config/aichat/.env` as `CLAUDE_API_KEY` — never put it in the repo (`.env` is gitignored) - **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` diff --git a/hypr/cursor_follow.lua b/hypr/cursor_follow.lua index 57be333..637330d 100644 --- a/hypr/cursor_follow.lua +++ b/hypr/cursor_follow.lua @@ -428,7 +428,7 @@ keys = { { repeating = true }, }, { "SUPER + ALT + Z", "show these keybindings", M.help }, - { "SUPER + A", "pie menu of popups: hold SUPER, flick toward one, release", hl.dsp.global("kando:popups") }, + { "SUPER + A", "pie menu of popups: hold SUPER, flick toward one, release", hl.dsp.global("menu.kando.Kando:popups") }, } for _, k in ipairs(keys) do