From a74151075ec215e3445ad4b5b0f590ab1976148b Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Thu, 11 Oct 2018 16:06:15 -0400 Subject: [PATCH] added a way to disable animated wallpaper --- files/.local/bin/lock | 2 +- files/.local/bin/wallpaper | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/files/.local/bin/lock b/files/.local/bin/lock index 4293a30..7170eed 100755 --- a/files/.local/bin/lock +++ b/files/.local/bin/lock @@ -13,7 +13,7 @@ query_prop() { # flush gpg-agent cache echo RELOADAGENT | gpg-connect-agent -exec i3lock --image="$HOME/.local/share/wallpaper.png" --indicator --force-clock \ +exec i3lock --image="$HOME/.local/share/wallpaper.jpg" --indicator --force-clock \ --veriftext="" --wrongtext="" --noinputtext="" --layoutcolor="00000000" --insidevercolor="00000000" --insidewrongcolor="00000000" --insidecolor="00000000" \ --ringvercolor="$(query_color primary)FF" --ringwrongcolor="$(query_color error)FF" --ringcolor="$(query_color fg-enabled)FF" \ --keyhlcolor="$(query_color primary)FF" --bshlcolor="$(query_color secondary)FF" \ diff --git a/files/.local/bin/wallpaper b/files/.local/bin/wallpaper index 390f2aa..fd64457 100755 --- a/files/.local/bin/wallpaper +++ b/files/.local/bin/wallpaper @@ -3,9 +3,14 @@ # quick and dirty script, but it works wallpaper_source="https://massaki.ca/extra/wallpaper.mp4" -wallpaper_static="$HOME/.local/share/wallpaper.png" +wallpaper_static="$HOME/.local/share/wallpaper.jpg" wallpaper_anim="$HOME/.local/share/wallpaper.mp4" +if [ ! -f "$HOME/.cache/wallpaper_enabled" ]; then + echo "Animated wallpaper disabled" + echo "touch $HOME/.cache/wallpaper_enabled to enable it" + exit +fi if [ ! -f "$wallpaper_anim" ]; then # calculate screen geometry