diff options
Diffstat (limited to 'dotfiles/common/.local/bin')
| -rwxr-xr-x | dotfiles/common/.local/bin/ai-assistants | 2 | ||||
| -rwxr-xr-x | dotfiles/common/.local/bin/aix | 8 | ||||
| -rwxr-xr-x | dotfiles/common/.local/bin/logitech-brio-settings.sh | 31 |
3 files changed, 36 insertions, 5 deletions
diff --git a/dotfiles/common/.local/bin/ai-assistants b/dotfiles/common/.local/bin/ai-assistants index 51028fe..3b4d80e 100755 --- a/dotfiles/common/.local/bin/ai-assistants +++ b/dotfiles/common/.local/bin/ai-assistants @@ -21,7 +21,7 @@ projects=( ) # Claude command to run in each window -CLAUDE_CMD='claude "Read docs/protocols.org and docs/NOTES.org, follow instructions exactly, then begin the session-start workflow"' +CLAUDE_CMD='claude "Read docs/protocols.org and follow all instructions."' # Create session with first project first="${projects[0]}" diff --git a/dotfiles/common/.local/bin/aix b/dotfiles/common/.local/bin/aix index 0f70d23..35cab64 100755 --- a/dotfiles/common/.local/bin/aix +++ b/dotfiles/common/.local/bin/aix @@ -1,7 +1,7 @@ #!/bin/bash -# Launch tmux session with Claude in fzf-selected project directories +# Launch tmux session with an LLM in fzf-selected project directories -SESSION="claude" +SESSION="ai" # If session exists, attach or switch to it if tmux has-session -t "$SESSION" 2>/dev/null; then @@ -41,13 +41,13 @@ selections=$(printf '%s\n' "${candidates[@]}" | fzf --multi --height=70% --rever # Claude command — separated for safe editing AI_CMD="claude" -AI_INSTRUCTIONS='Read docs/protocols.org and docs/NOTES.org, follow instructions exactly, then begin the session-start workflow' +AI_INSTRUCTIONS='Read docs/protocols.org and follow all instructions.' # Read selections into array selected=() while IFS= read -r line; do selected+=("$line") -done <<< "$selections" +done <<<"$selections" # Create session with first selection first="${selected[0]}" diff --git a/dotfiles/common/.local/bin/logitech-brio-settings.sh b/dotfiles/common/.local/bin/logitech-brio-settings.sh new file mode 100755 index 0000000..104c880 --- /dev/null +++ b/dotfiles/common/.local/bin/logitech-brio-settings.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# Apply saved camera settings for Logitech BRIO +# Triggered by udev rule on USB connect +# Settings dialed in via cameractrls on 2026-02-08 + +DEVICE="$1" + +if [ -z "$DEVICE" ]; then + # Find the BRIO's main video device + DEVICE=$(v4l2-ctl --list-devices 2>/dev/null | grep -A1 "Logitech BRIO" | grep /dev/video | head -1 | tr -d '[:space:]') +fi + +[ -z "$DEVICE" ] && exit 1 + +sleep 2 # Give the device time to initialize + +v4l2-ctl -d "$DEVICE" \ + --set-ctrl=brightness=85 \ + --set-ctrl=contrast=88 \ + --set-ctrl=saturation=128 \ + --set-ctrl=sharpness=163 \ + --set-ctrl=backlight_compensation=0 \ + --set-ctrl=power_line_frequency=2 \ + --set-ctrl=white_balance_automatic=0 \ + --set-ctrl=white_balance_temperature=3050 \ + --set-ctrl=auto_exposure=3 \ + --set-ctrl=exposure_dynamic_framerate=1 \ + --set-ctrl=focus_automatic_continuous=1 \ + --set-ctrl=zoom_absolute=136 \ + --set-ctrl=pan_absolute=-10800 \ + --set-ctrl=tilt_absolute=0 |
