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.
19 lines
695 B
Bash
Executable File
19 lines
695 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Toggle crash capture notifications
|
|
|
|
# nf-md-robot_dead, escaped so this file reads without a Nerd Font.
|
|
readonly CRASH_GLYPH=$'\U000f16a1'
|
|
|
|
omarchy-toggle crash-capture-off
|
|
|
|
# The unit checks the same flag with ConditionPathExists, so stopping and
|
|
# starting only settles this session; the next login reads the flag itself.
|
|
if omarchy-toggle-enabled crash-capture-off; then
|
|
systemctl --user stop omarchy-crash-watch.service
|
|
omarchy-notification-send -g "$CRASH_GLYPH" "$(omarchy-text "Crash capture disabled")"
|
|
else
|
|
systemctl --user start omarchy-crash-watch.service
|
|
omarchy-notification-send -g "$CRASH_GLYPH" "$(omarchy-text "Crash capture enabled")"
|
|
fi
|