Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tschf/unphoto
Download a photo of the day
https://github.com/tschf/unphoto
Last synced: 3 days ago
JSON representation
Download a photo of the day
- Host: GitHub
- URL: https://github.com/tschf/unphoto
- Owner: tschf
- Created: 2019-09-16T06:31:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T06:28:46.000Z (6 months ago)
- Last Synced: 2024-07-28T00:30:34.642Z (6 months ago)
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unphoto
Utility for setting a randomized photo to your wallpaper. Currently implemented proviers:
* Guardian - Uses picture of the day
* Local - You point to a folder on your system## Usage
A few example usage patterns:
```
unphoto --guardian
unphoto --guardian --wallpaper
unphoto --local --local-path /home/trent/Pictures --wallpaper
```The latter 2 will change your current wallpaper.
You may want to automate this either through a startup script or on recurring timer.
Using a systemd timer:```bash
cat << EOF > $HOME/.config/systemd/user/unphoto.service
[Unit]
Description="Changes the wallpaper from the given folder"
Wants=unphoto.timer[Service]
ExecStart=$HOME/go/bin/unphoto --local --local-path $HOME/Pictures/CorporateBackgrounds --wallpaper[Install]
WantedBy=default.target
EOF
```And the timer file to run every hour:
```bash
cat < $HOME/.config/systemd/user/unphoto.timer
[Unit]
Description=Timer for the unphoto service that changes the desktop wallpaper
Requires=unphoto.service[Timer]
Unit=unphoto.service
OnCalendar=*-*-* *:00:00[Install]
WantedBy=timers.targetEOF
```After that, reload daemon
```bash
systemctl --user daemon-reload
systemctl --user list-timers
```Reference: OL documentation,
## Author
Trent Schafer, 2019