1
0
Fork 0

added a way to disable animated wallpaper

This commit is contained in:
Massaki Archambault 2018-10-11 16:06:15 -04:00
parent e14d0e66e3
commit a74151075e
2 changed files with 7 additions and 2 deletions

View File

@ -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" \

View File

@ -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