enBoxer/examples/profile.yaml
en 1ec8d78f71 Implement ISBoxer-style smart interact shortcut (bind: interact)
A step with bind: interact now expands at compile time into the full chain
(CTM on -> Interact with Target -> sleep walk_delay_ms -> CTM off), driven
by profile.interact (style + walk_delay_ms). One user keypress, four
keystrokes dispatched to every captured slot.

Styles:
  - standard (default): chain runs, CTM ends off
  - auto:              chain runs, CTM stays on (toggle via ctm_off later)
  - hold:              press fires CTM-on + Alt+J; bind: ctm_off in
                       release_steps to fire it on hotkey release

Example loot (Alt+G) and interact (Alt+I) maps now use the shortcut. A
loot_manual map (Ctrl+Alt+G) exercises the explicit chain for users who
want per-step control.

92/92 unit tests pass; clippy clean. New tests:
  - interact_smart_shortcut_standard_emits_full_sequence
  - interact_smart_shortcut_auto_emits_two_no_tail
  - interact_smart_shortcut_hold_emits_press_only

Docs: MACROS.md (new Smart interact shortcut section with style table),
NOTES.md callout, examples/profile.yaml comments, CHANGELOG.md entry.
2026-09-16 04:51:07 +02:00

176 lines
4.6 KiB
YAML

# Copy to ~/.config/enboxer/profile.yaml and edit.
# Keys use Mod+Key (Alt+G, Shift+F3). Letters are case-insensitive.
name: esdf-team
client: wow-retail
slots: 2
# Hyprland window match (regex). Wine/WoW class is often wow.exe or the wine prefix name.
window_match:
class: "(?i)wow|warcraft"
title: null
# Keys that are NEVER intercepted. Empty = no skip list.
# ESDF movement stays on the primary even if you later add a map for those letters.
passthrough: ["e", "s", "d", "f"]
# maps = only keys listed under `maps` (rest stay on the front window)
# mirror = clone keys to the other clients (passthrough still skipped)
# off = no intercept; the front window gets everything
mode_default: maps
# Optional: limit which keys mirror-mode clones. Empty = letters, digits, F-keys, etc.
repeater:
enabled: false
keys: []
game_binds:
# Interact with Target is a built-in WoW keybind (Key Bindings > Targeting >
# Interact Target). Bind it on every account to the same key; enBoxer just
# routes the keystroke. Alt+J was requested explicitly.
interact: "Alt+J"
# /console is not keybindable; CTM on / off must be macros.
ctm_on: "Shift+F3"
ctm_off: "Shift+F4"
# Per-character macro: the slot's character name is filled in by
# Character.assist_key / Character.follow_key, so swap-to-slot-N retargets
# the bind without re-editing YAML.
assist: "Shift+F2"
follow: "Shift+F1"
# Optional, class-dependent (Hunter / Warlock / DK / Demon Hunter).
# Built-in keybind Targets > Pet Actions > Attack.
# pet_attack: "F"
# Optional "try again" after a missed interact. Targets > Target Last Target.
# target_last: "Ctrl+L"
interact:
# standard: CTM on → IWT → wait → CTM off
# auto: CTM on → IWT (CTM stays on)
# hold: CTM on → IWT on press; CTM off on release
style: standard
walk_delay_ms: 2500
session_hotkeys:
mode_cycle: "Shift+Alt+M"
swap_next: "Ctrl+grave"
swap_prev: "Ctrl+Shift+grave"
focus_next: "Ctrl+Shift+N"
focus_prev: "Ctrl+Shift+P"
focus_main: "Ctrl+F1"
reset_all: "Ctrl+Shift+R"
stay_on_top: "Ctrl+Shift+T"
mouse_follow: "Ctrl+Shift+F"
mouse_broadcast: "Ctrl+Shift+B"
characters:
- slot: 1
name: Main
assist_key: "Shift+F2"
follow_key: "Shift+F1"
- slot: 2
name: Alt
assist_key: "F9"
follow_key: "F10"
groups:
alts:
slots: [2]
maps:
- name: bar_1
hotkey: "1"
steps:
- bind: assist
target: others
- key: "1"
target: all
- name: bar_2
hotkey: "2"
steps:
- bind: assist
target: others
- key: "2"
target: all
- name: follow_me
hotkey: "Alt+F"
steps:
- bind: follow
target: others
- name: assist_me
hotkey: "Alt+A"
steps:
- bind: assist
target: others
- name: loot
# ISBoxer Mapped Key analog: one user keypress fires the entire interact
# chain (CTM on -> Interact with Target -> wait walk_delay_ms -> CTM off),
# driven by profile.interact (style + walk_delay_ms). The follower has
# walk_delay_ms to actually walk to the target before CTM turns off.
hotkey: "Alt+G"
steps:
- bind: assist
target: others
- bind: interact
target: others
- name: loot_manual
# Same idea as `loot` but composed by hand. Pick this form if you want to
# do anything fancy between the CTM toggle and the interact (e.g. a delay
# specific to a slow class, or a different key for each step).
hotkey: "Ctrl+Alt+G"
hold: false
steps:
- bind: assist
target: others
- bind: ctm_on
target: others
- bind: interact
target: others
- delay_ms: 5000
- bind: ctm_off
target: others
- name: interact_hold
hotkey: "Alt+H"
hold: true
steps:
- bind: ctm_on
target: others
- bind: interact
target: others
release_steps:
- bind: ctm_off
target: others
- name: rez_cycle
# Each press picks the next slot in order (1..=N, then wraps). State
# lives on the engine, keyed by this map name, so a second `rr`
# map keeps its own cursor.
hotkey: "Alt+R"
steps:
- key: "F8"
target: round_robin
# Window layout (pixels). Generate from the Layout page, then Save and Apply.
layout:
preset: main_strip
one_row: true
main_at_bottom: false
auto_apply: false
monitor: ""
slots: []
# Viewer sits on the current primary. Hover + pass_through sends keys/clicks to source_slot only.
video_fx:
- name: alt_party
enabled: false
source_slot: 2
source: { x: 0.0, y: 0.0, w: 0.40, h: 0.40 }
viewer: { x: 0.02, y: 0.02, w: 0.28, h: 0.28 }
pass_through: true
fps: 12