Initial import: Lua config, trimmed omarchy scripts, theme system
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# archypr:summary=Edit, set, or reset screensaver branding
|
||||
# archypr:group=branding
|
||||
# archypr:name=screensaver
|
||||
# archypr:args=<image|text|reset>
|
||||
# archypr:examples=omarchy branding screensaver image | omarchy branding screensaver text | omarchy branding screensaver reset
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
case "${1:-}" in
|
||||
image)
|
||||
image=$(archypr-enu-file "Logo image" "$HOME" "svg png")
|
||||
if [[ -n $image ]] && archypr-transcode-ascii "$image" ~/.config/archypr/branding/screensaver.txt; then
|
||||
archypr-launch-screensaver force >/dev/null 2>&1
|
||||
fi
|
||||
;;
|
||||
text)
|
||||
archypr-launch-editor ~/.config/archypr/branding/screensaver.txt >/dev/null 2>&1 && archypr-launch-screensaver force >/dev/null 2>&1
|
||||
;;
|
||||
reset)
|
||||
cp "$ARCHYPR_PATH/logo.txt" ~/.config/archypr/branding/screensaver.txt && archypr-launch-screensaver force >/dev/null 2>&1
|
||||
;;
|
||||
*)
|
||||
echo "Usage: archypr-branding-screensaver <image|text|reset>" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user