Files
omarchy/bin/omarchy-toggle-screensaver
T
ZacharyZhang-NY a9b39710a2 Add Simplified Chinese as a system language
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.
2026-10-12 02:56:40 -04:00

12 lines
305 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Toggle screensaver availability
omarchy-toggle screensaver-off
if omarchy-toggle-enabled screensaver-off; then
omarchy-notification-send -g 󱄄 "$(omarchy-text "Screensaver disabled")"
else
omarchy-notification-send -g 󱄄 "$(omarchy-text "Screensaver enabled")"
fi