Skip to content

Added rendering mode parameter functionality #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
gifs/*
gorilla_eating/*
10 changes: 10 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ $ ./loop_pngs.sh ~/Desktop/forest 0.05
```
This will force the gif to update every 0.05 seconds. The default value is 0.1 seconds.

## Rendering mode

You can optionally change how the wallpaper will be rendered by giving a third argument, just like the example shown below:
```
$ ./loop_pngs.sh ~/Desktop/forest 0.05 f
```
In this case, it will stretch the gif if it ain't the exact proportions of the screen, for instance, if you used a 1366x768
gif in a 1980x1080 monitor it would have black borders in normal mode, however, with f the whole background will be filled (although
Copy link
Owner

@sdaveas sdaveas Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just my ocds kicking in

Suggested change
gif in a 1980x1080 monitor it would have black borders in normal mode, however, with f the whole background will be filled (although
gif in a 1980x1080 monitor it would have black borders in normal mode, however, with `f` the whole background will be filled (although

some of the image quality might be lost)

## Resource Usage

Bear in mind that using animated background can be computationally intensive,
Expand Down
Binary file added gorilla-eating/gorilla-eating000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating019.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gorilla-eating/gorilla-eating025.png
Binary file added gorilla-eating/gorilla-eating026.png
Binary file added gorilla-eating/gorilla-eating027.png
Binary file added gorilla-eating/gorilla-eating028.png
Binary file added gorilla-eating/gorilla-eating029.png
Binary file added gorilla-eating/gorilla-eating030.png
Binary file added gorilla-eating/gorilla-eating031.png
Binary file added gorilla-eating/gorilla-eating032.png
Binary file added gorilla-eating/gorilla-eating033.png
Binary file added gorilla-eating/gorilla-eating034.png
Binary file added gorilla-eating/gorilla-eating035.png
Binary file added gorilla-eating/gorilla-eating036.png
Binary file added gorilla-eating/gorilla-eating037.png
Binary file added gorilla-eating/gorilla-eating038.png
Binary file added gorilla-eating/gorilla-eating039.png
Binary file added gorilla-eating/gorilla-eating040.png
Binary file added gorilla-eating/gorilla-eating041.png
Binary file added gorilla-eating/gorilla-eating042.png
Binary file added gorilla-eating/gorilla-eating043.png
Binary file added gorilla-eating/gorilla-eating044.png
Binary file added gorilla-eating/gorilla-eating045.png
Binary file added gorilla-eating/gorilla-eating046.png
Binary file added gorilla-eating/gorilla-eating047.png
Binary file added gorilla-eating/gorilla-eating048.png
Binary file added gorilla-eating/gorilla-eating049.png
Binary file added gorilla-eating/gorilla-eating050.png
Binary file added gorilla-eating/gorilla-eating051.png
Binary file added gorilla-eating/gorilla-eating052.png
Binary file added gorilla-eating/gorilla-eating053.png
Binary file added gorilla-eating/gorilla-eating054.png
Binary file added gorilla-eating/gorilla-eating055.png
Binary file added gorilla-eating/gorilla-eating056.png
Binary file added gorilla-eating/gorilla-eating057.png
Binary file added gorilla-eating/gorilla-eating058.png
Binary file added gorilla-eating/gorilla-eating059.png
Binary file added gorilla-eating/gorilla-eating060.png
Binary file added gorilla-eating/gorilla-eating061.png
Binary file added gorilla-eating/gorilla-eating062.png
Binary file added gorilla-eating/gorilla-eating063.png
Binary file added scripts/gorilla-eating/gorilla-eating000.png
Binary file added scripts/gorilla-eating/gorilla-eating001.png
Binary file added scripts/gorilla-eating/gorilla-eating002.png
Binary file added scripts/gorilla-eating/gorilla-eating003.png
Binary file added scripts/gorilla-eating/gorilla-eating004.png
Binary file added scripts/gorilla-eating/gorilla-eating005.png
Binary file added scripts/gorilla-eating/gorilla-eating006.png
Binary file added scripts/gorilla-eating/gorilla-eating007.png
Binary file added scripts/gorilla-eating/gorilla-eating008.png
Binary file added scripts/gorilla-eating/gorilla-eating009.png
Binary file added scripts/gorilla-eating/gorilla-eating010.png
Binary file added scripts/gorilla-eating/gorilla-eating011.png
Binary file added scripts/gorilla-eating/gorilla-eating012.png
Binary file added scripts/gorilla-eating/gorilla-eating013.png
Binary file added scripts/gorilla-eating/gorilla-eating014.png
Binary file added scripts/gorilla-eating/gorilla-eating015.png
Binary file added scripts/gorilla-eating/gorilla-eating016.png
Binary file added scripts/gorilla-eating/gorilla-eating017.png
Binary file added scripts/gorilla-eating/gorilla-eating018.png
Binary file added scripts/gorilla-eating/gorilla-eating019.png
Binary file added scripts/gorilla-eating/gorilla-eating020.png
Binary file added scripts/gorilla-eating/gorilla-eating021.png
Binary file added scripts/gorilla-eating/gorilla-eating022.png
Binary file added scripts/gorilla-eating/gorilla-eating023.png
Binary file added scripts/gorilla-eating/gorilla-eating024.png
Binary file added scripts/gorilla-eating/gorilla-eating025.png
Binary file added scripts/gorilla-eating/gorilla-eating026.png
Binary file added scripts/gorilla-eating/gorilla-eating027.png
Binary file added scripts/gorilla-eating/gorilla-eating028.png
Binary file added scripts/gorilla-eating/gorilla-eating029.png
Binary file added scripts/gorilla-eating/gorilla-eating030.png
Binary file added scripts/gorilla-eating/gorilla-eating031.png
Binary file added scripts/gorilla-eating/gorilla-eating032.png
Binary file added scripts/gorilla-eating/gorilla-eating033.png
Binary file added scripts/gorilla-eating/gorilla-eating034.png
Binary file added scripts/gorilla-eating/gorilla-eating035.png
Binary file added scripts/gorilla-eating/gorilla-eating036.png
Binary file added scripts/gorilla-eating/gorilla-eating037.png
Binary file added scripts/gorilla-eating/gorilla-eating038.png
Binary file added scripts/gorilla-eating/gorilla-eating039.png
Binary file added scripts/gorilla-eating/gorilla-eating040.png
Binary file added scripts/gorilla-eating/gorilla-eating041.png
Binary file added scripts/gorilla-eating/gorilla-eating042.png
Binary file added scripts/gorilla-eating/gorilla-eating043.png
Binary file added scripts/gorilla-eating/gorilla-eating044.png
Binary file added scripts/gorilla-eating/gorilla-eating045.png
Binary file added scripts/gorilla-eating/gorilla-eating046.png
Binary file added scripts/gorilla-eating/gorilla-eating047.png
Binary file added scripts/gorilla-eating/gorilla-eating048.png
Binary file added scripts/gorilla-eating/gorilla-eating049.png
Binary file added scripts/gorilla-eating/gorilla-eating050.png
Binary file added scripts/gorilla-eating/gorilla-eating051.png
Binary file added scripts/gorilla-eating/gorilla-eating052.png
Binary file added scripts/gorilla-eating/gorilla-eating053.png
Binary file added scripts/gorilla-eating/gorilla-eating054.png
Binary file added scripts/gorilla-eating/gorilla-eating055.png
Binary file added scripts/gorilla-eating/gorilla-eating056.png
Binary file added scripts/gorilla-eating/gorilla-eating057.png
Binary file added scripts/gorilla-eating/gorilla-eating058.png
Binary file added scripts/gorilla-eating/gorilla-eating059.png
Binary file added scripts/gorilla-eating/gorilla-eating060.png
Binary file added scripts/gorilla-eating/gorilla-eating061.png
Binary file added scripts/gorilla-eating/gorilla-eating062.png
Binary file added scripts/gorilla-eating/gorilla-eating063.png
14 changes: 13 additions & 1 deletion scripts/loop_pngs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ else
interval=$2
fi

if [ -z "$3" ]
then
mode="--bg-center"
else
if [[ "$3" == "f" ]]
then
mode="--bg-fill"
else
mode="--bg-center"
fi
fi

while true;
do
for image in $pattern;
do
# echo $image
feh --bg-center $image && sleep $interval;
feh $mode $image && sleep $interval;
done
done