List photo collections on unsplash from where to get a wallpaper at random
Go to file
Abreu c3bd0cf99e
Update README.md
2021-08-09 20:20:50 -03:00
completions Renamed function 2019-05-20 16:06:45 -03:00
functions Initial commit 2021-08-07 18:01:01 -03:00
hooks Initial commit 2021-08-07 18:01:01 -03:00
.gitignore Removed dependency script 2019-03-05 13:11:12 -03:00
LICENSE Initial commit 2018-06-15 15:36:17 -03:00
README.md Update README.md 2021-08-09 20:20:50 -03:00
init.fish Modified the function into a script 2019-12-12 21:13:13 -03:00
instructions.fish Renamed function 2019-05-20 16:06:45 -03:00

README.md

GPL License Fish Shell Version Oh My Fish Framework

uc

A plugin for Oh My Fish

uc (unsplash collections) allows one to list photo collections on unsplash from where to draw a wallpaper at random.

Options

uc [collection number]
Get a random image from a collection and set it as the new background and screensaver wallpaper. If no collection is specified, a random listed collection will be used instead.

uc -a/--add [collection number] ...
Add a new collection to the list.

uc -r/--remove [collection number] ...
Remove a collection from the list.

uc -u/--url [collection number] ...
Present the urls from specified collections.

uc -f/-folder [directory]
Set where images are stored. If no directory is passed, display where they're currently being stored.

uc -c/--cache [number]
Set the size of the image cache.

uc -l/--list [collection/size/description]
Show listed collections.

uc -h/--help
Display these instructions.

Install

omf repositories add https://gitlab.com/argonautica/argonautica 
omf install uc

Dependencies

This plugin uses unsplash_wallpaper by cuth to get wallpapers. If you don't have it installed, you'll be prompted to install it upon installing of this plugin.

Configuration

This script is optimized to work with environment variables available to cron, so that you can change your background and lockscreen wallpapers periodically and automatically. As an example, to change them every 3 hours, use the command crontab -e and append the following line:

0 */3 * * * .local/share/omf/pkg/uc/functions/uc.fish

For more information on how to schedule tasks using cron, consult this video.