GithubHelp home page GithubHelp logo

hadasvolk / backterm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

BackTerm is a command-line tool for generating random terminal backgrounds using the Unsplash API. Customizable options include color, texture, and resolution. Default settings generate dark, abstract, patterned images. Available under the MIT License.

License: MIT License

Python 100.00%

backterm's Introduction

BackTerm

BackTerm is a command-line tool that allows you to download random images from Unsplash and set them as the background for the Windows Terminal or Windows Terminal Preview. You can customize the images by specifying parameters like color, resolution, orientation, and more.

Installation

To use BackTerm, you'll need to have Python 3.6 or higher installed on your machine. You'll also need to install the requests library, which you can do by running the following command:

pip install requests

Once you've installed the required dependencies, you can download the BackTerm code from GitHub. You can either download the code as a ZIP file and extract it, or you can clone the repository using Git:

git clone https://github.com/hadasvolk/BackTerm.git

Usage

To use BackTerm, you'll need to sign up for an Unsplash API key. You can do this by visiting the Unsplash Developers page and following the instructions there.

Once you've obtained your API key, you can use it to run BackTerm. Open a terminal window and navigate to the folder where you've saved the BackTerm code. Then, run the following command:

python backterm.py --api-key YOUR_API_KEY

By default, BackTerm will search for dark, abstract, and patterned images with a resolution of 3440x1440, landscape orientation, high content filter, and ordered by popularity. You can customize these parameters using command-line arguments:

--color: Specify a primary color for the image (default: 'black').
--resolution: Specify the image resolution (default: '3440x1440').
--orientation: Specify the image orientation (default: 'landscape').
--query: Specify a custom search query to find images that match your interests (default: 'dark,abstract,pattern').
--content-filter: Filter images by content rating (default: 'high').
--order-by: Order search results by 'relevant', 'latest', or 'popular' (default).

To set the background for Windows Terminal Preview, use the --preview flag:

python backterm.py --api-key YOUR_API_KEY --preview

Attribution

BackTerm uses the Unsplash API to download images. By using BackTerm, you agree to comply with the Unsplash API Guidelines.

To comply with the guidelines, BackTerm automatically downloads the attribution information for each image you download and displays it in the console when the image is set as the background. Please ensure that you provide proper attribution when using images downloaded by BackTerm.

License

MIT

backterm's People

Contributors

hadasvolk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.