feat: parity — brightness, window switch, spelling, network, summarize (100 commands)
Mirrors the rust tier-3 batch. 90 → 100 commands (round number — feels
right for an "имба" milestone).
main.py:
+ do_brightness: WMI WmiMonitorBrightness read + WmiSetBrightness write,
±20% step or 100/10 absolute, "no_wmi" sentinel for desktops.
+ do_window_switch: same alias map as process_kill (xrom→chrome/...),
PS finds process by name OR window-title substring, picks newest
StartTime, AppActivate via WScript.Shell.
+ do_spell_out: split chars, join with ". ", _speak.
+ do_network_settings: action.section = wifi|bluetooth|network →
matching ms-settings:* URI via cmd /c start "".
+ do_my_ip: Get-NetIPAddress filtered to non-loopback non-APIPA IPv4,
WAN via Invoke-RestMethod ipify, speaks "Локальный X. Внешний Y".
+ do_summarize_selection: pyautogui.hotkey(ctrl, c) → 250ms wait →
Get-Clipboard → Groq @ temp 0.3 ("3-5 sentence retell") → speak +
clipboard.
commands.yaml +10 entries: brightness_up/down/max/min, switch_to_window,
spell_out, open_wifi_settings, open_bluetooth_settings, my_ip,
summarize_selection.
Backlog: closed all "Tier-3 still TODO" pure-Lua items. Remaining
TODOs (pomodoro, currency-math, stocks, translate-clipboard, daily
briefing, etc.) are even smaller LOC and can roll in the next batch.
This commit is contained in:
parent
b3a5bcabe5
commit
ef8da9cba8
2 changed files with 249 additions and 0 deletions
|
|
@ -740,6 +740,83 @@ random_choice:
|
|||
- выбрать
|
||||
action: {type: random_choice}
|
||||
|
||||
brightness_up:
|
||||
phrases:
|
||||
- ярче
|
||||
- сделай ярче
|
||||
- увеличь яркость
|
||||
- поярче
|
||||
action: {type: brightness, op: up}
|
||||
|
||||
brightness_down:
|
||||
phrases:
|
||||
- темнее
|
||||
- сделай темнее
|
||||
- уменьши яркость
|
||||
- потемнее
|
||||
action: {type: brightness, op: down}
|
||||
|
||||
brightness_max:
|
||||
phrases:
|
||||
- максимальная яркость
|
||||
- яркость на максимум
|
||||
action: {type: brightness, op: max}
|
||||
|
||||
brightness_min:
|
||||
phrases:
|
||||
- минимальная яркость
|
||||
- яркость на минимум
|
||||
action: {type: brightness, op: min}
|
||||
|
||||
switch_to_window:
|
||||
phrases:
|
||||
- переключись на
|
||||
- переключи на
|
||||
- активируй окно
|
||||
- покажи окно
|
||||
- перейди в
|
||||
action: {type: window_switch}
|
||||
|
||||
spell_out:
|
||||
phrases:
|
||||
- произнеси по буквам
|
||||
- продиктуй по буквам
|
||||
- произнеси буквы
|
||||
- по буквам
|
||||
action: {type: spell_out}
|
||||
|
||||
open_wifi_settings:
|
||||
phrases:
|
||||
- настройки wifi
|
||||
- настройки вайфай
|
||||
- wifi настройки
|
||||
- сеть
|
||||
action: {type: network_settings, section: wifi}
|
||||
|
||||
open_bluetooth_settings:
|
||||
phrases:
|
||||
- настройки блютуз
|
||||
- блютуз
|
||||
action: {type: network_settings, section: bluetooth}
|
||||
|
||||
my_ip:
|
||||
phrases:
|
||||
- мой ай пи
|
||||
- мой ip
|
||||
- какой у меня айпи
|
||||
- айпишник
|
||||
action: {type: my_ip}
|
||||
|
||||
summarize_selection:
|
||||
phrases:
|
||||
- суммируй
|
||||
- перескажи выделенное
|
||||
- кратко перескажи
|
||||
- о чём это
|
||||
- что выделил
|
||||
- перескажи это
|
||||
action: {type: summarize_selection}
|
||||
|
||||
thanks:
|
||||
phrases:
|
||||
- спасибо
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue