Files
omarchy/bin/omarchy-toggle-animations
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

23 lines
791 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Toggle animations, blur and shadows, which are slow without a GPU
# omarchy:args=[toggle|on|off]
# omarchy:examples=omarchy toggle animations | omarchy toggle animations off | omarchy toggle animations on
# The flag records animations being off, so on and off swap on the way through.
case ${1:-toggle} in
toggle) omarchy-hyprland-toggle no-animations toggle ;;
on) omarchy-hyprland-toggle no-animations off ;;
off) omarchy-hyprland-toggle no-animations on ;;
*)
echo "Usage: omarchy-toggle-animations [toggle|on|off]" >&2
exit 1
;;
esac
if omarchy-hyprland-toggle-enabled no-animations; then
omarchy-notification-send -g 󰗘 "$(omarchy-text "Animations disabled")"
else
omarchy-notification-send -g 󰗘 "$(omarchy-text "Animations enabled")"
fi