Daypaper sets your GNOME wallpaper based on the time of day from a random and relevant Unsplash image.

Related tags

daypaper
Overview

Daypaper

Daypaper sets your GNOME wallpaper based on the time of day from a random and relevant Unsplash image.

Installation

  1. You will need an Access Token from Unsplash: create an app here after registration.
  2. Create the necessary configuration files:
mkdir ~/.config/daypaper/
touch ~/.config/daypaper/.token
  1. Paste your Access Token inside .token
  2. Clone this repository
  3. Run go install
  4. You're ready to go!

Usage

$: daypaper -h
Usage:
  daypaper [OPTIONS]

Application Options:
  -f, --force                                       Forces a wallpaper refresh even when in the same time span
  -t, --time=[morning|noon|afternoon|evening|night] Specify a particular time of day
  -s, --search=                                     Additional text query to be added while searching
  -q, --quality=                                    The downloaded image quality (default: 75)
  -e, --ext=                                        The downloaded image extension (default: jpg)
  -w, --width=                                      The downloaded image width (default: 1920)
  -a, --api=                                        The API endpoint (default: https://api.unsplash.com/photos/random)

Help Options:
  -h, --help                                        Show this help message

The simplest way to activate daypaper is to run it every hour:

$: crontab -e

0 * * * * ~/go/bin/daypaper > ~/.daypaper.log

Daypaper will contact the API only when needed (i.e. the current day period has changed).

The periods are defined like this:

= 12 && h <= 14 { return "noon" } else if h >= 15 && h <= 17 { return "afternoon" } else if h >= 18 && h <= 21 { return "evening" } return "night" ">
h := time.Now().Hour()

if h >= 7 && h <= 11 {
    return "morning"
} else if h >= 12 && h <= 14 {
    return "noon"
} else if h >= 15 && h <= 17 {
    return "afternoon"
} else if h >= 18 && h <= 21 {
    return "evening"
}

return "night"

Like your wallpaper?

Find out who shot it by looking in ~/.config/daypaper/credits.txt!

Can Daypaper please do x feature/support my DE?

Just open an issue/PR and I'll gladly help!

Releases(v1.0.1)
Owner
Matteo Guglielmetti
Matteo Guglielmetti
Instagram Backend API Using GO

InstaCloneGo ⚡ Instagram Backend API Using GO Setup ❄️ go run server.go API END POINTS CREATE USERS :http://localhost:8001/users GET A USER USING ID

NAVEEN 1 Oct 10, 2021
acoolTools - Golang工具集

Golang工具集,主要是将日常开发中常用的到方法进行提炼集成,避免重复造轮子,提高工作效率,每一个方法都是别的好项目中提炼出来的。

acools 3 Sep 29, 2021
A comprehensive list of alternatives to your favorite software

alternativeto A comprehensive list of alternatives to your favorite software. Please do not edit this file directly. Instead, follow the steps outline

Brent Adamson 24 Sep 20, 2021
✔️ Get random data for your app from a third-party source.

Random Data Securely produced random data for application testing. FAQ What would i use this data for? You can use this information to test your apps

ComplexOrganizations 0 Oct 17, 2021
A concurrent rate limiter library for Golang based on Sliding-Window rate limiter algorithm.

ratelimiter A generic concurrent rate limiter library for Golang based on Sliding-window rate limitng algorithm. The implementation of rate-limiter al

Narasimha Prasanna HN 176 Oct 21, 2021
a tool for creating exploited media files for discord

Discord-Exploits A program for creating exploited media files for discord written in Go. Usage discord-exploits is a command line utility, meaning you

schmenn 213 Oct 20, 2021
Helper library for full uint64 randomness, pool backed for efficient concurrency

fastrand64-go Helper library for full uint64 randomness, pool backed for efficient concurrency Inspired by https://github.com/valyala/fastrand which i

Ryan Haksi 41 Aug 4, 2021
💪 Helper Utils For The Go: string, array/slice, map, format, cli, env, filesystem, test and more.

?? Helper Utils For The Go: string, array/slice, map, format, cli, env, filesystem, test and more. Go 的一些工具函数,格式化,特殊处理,常用信息获取等等

Gookit 399 Oct 15, 2021
Fast, scalable pseudo random number generator based on xxh3

XXH3-Based Pseudorandom Number Generator This package contains an experimental implementation of a noise based pseudorandom number generator that scal

Roman Atachiants 5 Sep 17, 2021
randstr is a module that contains functions for generating random strings.

randstr is a module that contains functions for generating random strings. The functions in this module uses the crypto/rand package. Installa

Henrik Christensen 3 Aug 1, 2021
A library for diffing golang structures

Diff A library for diffing golang structures and values. Utilizing field tags and reflection, it is able to compare two structures of the same type an

R3 Labs 387 Oct 22, 2021
📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)

clipboard Cross platform (macOS/Linux/Windows/Android/iOS) clipboard package in Go import "golang.design/x/clipboard" Features Cross platform supports

The golang.design Initiative 106 Oct 21, 2021
A set of instrumentation features for collecting relevant tracing data as well as secure an application

Go Agent goagent provides a set of instrumentation features for collecting relevant tracing data as well as secure an application by blocking requests

null 0 Oct 12, 2021
internship selection task for 3rd year VIT Bhopal in Appointy

Appointy_tech_task1 internship selection task for 3rd year VIT Bhopal in Appointy To run : Requirements : To be able to show the desired features of c

Anirudh Lodh 1 Oct 9, 2021
Fully featured, spec-compliant HTML5 server-sent events library

go-sse Lightweight, fully spec-compliant HTML5 server-sent events library. Table of contents go-sse Table of contents Installation and usage Implement

Teodor Maxim 150 Oct 15, 2021
this is an api that execute your deno code and send you the output

this a simple api that execute your deno code and send you the output, has not limit per request example request: in deno: const rawResponse = await f

pai 12 Oct 15, 2021
Exploring Postgres Write Ahead Logs (WAL)

Exploring Postgres Write Ahead Logs (WAL) I interact with Postgres on a daily basis, albeit typically managed by a service provider like AWS RDS. Hot

Florian Suess 1 Oct 18, 2021
a decision & trigger framework backed by Google's Common Expression Language used in graphikDB

a decision & trigger framework backed by Google's Common Expression Language used in graphikDB

null 57 Jul 29, 2021
go-sundheit:A library built to provide support for defining service health for golang services

A library built to provide support for defining service health for golang services. It allows you to register async health checks for your dependencies and the service itself, and provides a health endpoint that exposes their status.

AppsFlyer 433 Oct 3, 2021