added a way to disable animated wallpaper
This commit is contained in:
parent
e14d0e66e3
commit
a74151075e
|
@ -13,7 +13,7 @@ query_prop() {
|
||||||
# flush gpg-agent cache
|
# flush gpg-agent cache
|
||||||
echo RELOADAGENT | gpg-connect-agent
|
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" \
|
--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" \
|
--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" \
|
--keyhlcolor="$(query_color primary)FF" --bshlcolor="$(query_color secondary)FF" \
|
||||||
|
|
|
@ -3,9 +3,14 @@
|
||||||
# quick and dirty script, but it works
|
# quick and dirty script, but it works
|
||||||
|
|
||||||
wallpaper_source="https://massaki.ca/extra/wallpaper.mp4"
|
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"
|
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
|
if [ ! -f "$wallpaper_anim" ]; then
|
||||||
# calculate screen geometry
|
# calculate screen geometry
|
||||||
|
|
Loading…
Reference in New Issue