Allow customizing the screensaver logo (#863)
* check for custom screensaver logo or fall back to default * move logo location to omarchy config folder * fix missed location check * add menu item to copy logo.txt and open in editor * move to setup menu * Just always use a user-editable screensaver.txt file * No longer needed * Be clearer --------- Co-authored-by: Christopher Moore <cmoore@yozu.co.uk> Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
parent
3a0bb502b6
commit
0246468403
@ -3,7 +3,7 @@
|
||||
if command -v tte &>/dev/null; then
|
||||
while true; do
|
||||
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
||||
tte -i ~/.local/share/omarchy/logo.txt \
|
||||
tte -i ~/.config/omarchy/screensaver.txt \
|
||||
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
|
||||
"$effect" &
|
||||
|
||||
|
@ -63,10 +63,11 @@ show_learn_menu() {
|
||||
}
|
||||
|
||||
show_style_menu() {
|
||||
case $(menu "Style" " Theme\n Font\n Background") in
|
||||
case $(menu "Style" " Theme\n Font\n Background\n Screensaver") in
|
||||
*Theme*) show_theme_menu ;;
|
||||
*Font*) show_font_menu ;;
|
||||
*Background*) omarchy-theme-bg-next ;;
|
||||
*Screensaver*) edit_in_nvim ~/.config/omarchy/screensaver.txt ;;
|
||||
*) show_main_menu ;;
|
||||
esac
|
||||
}
|
||||
|
@ -4,3 +4,4 @@ pkill walker
|
||||
# FIXME: Reenable the walker service once the memory leak has been fixed
|
||||
# See https://github.com/basecamp/omarchy/issues/698
|
||||
# setsid uwsm app -- walker --gapplication-service &
|
||||
echo # Always end in success so we don't terminate further running
|
||||
|
3
migrations/1755867743.sh
Normal file
3
migrations/1755867743.sh
Normal file
@ -0,0 +1,3 @@
|
||||
echo "Copy Omarchy logo to ~/.config/omarchy/screensaver.txt so screensaver can be personalized"
|
||||
|
||||
cp $OMARCHY_PATH/logo.txt ~/.config/omarchy/screensaver.txt
|
Loading…
x
Reference in New Issue
Block a user