The installer asks for the language before the keyboard, and Setup > Language (omarchy language en|zh) switches it later. Under zh_CN the menu reads its labels from omarchy-menu.zh-cn.jsonc, the shell from I18nZh.js through I18n.tr, and notifications are worded by their sender through omarchy-text, which reads the same table. User text is never translated.
14 lines
463 B
Bash
Executable File
14 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Toggle microphone mute. Drives the hardware mic-mute LED on laptops that expose one.
|
|
|
|
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle >/dev/null
|
|
|
|
if wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED; then
|
|
omarchy-brightness-keyboard-mute on
|
|
omarchy-osd -i microphone-muted -m "$(omarchy-text "Microphone muted")"
|
|
else
|
|
omarchy-brightness-keyboard-mute off
|
|
omarchy-osd -i microphone -m "$(omarchy-text "Microphone on")"
|
|
fi
|