Coder Social home page Coder Social logo

ruin's Introduction

Ruin - The battery indicator

Create a battery indicator from any image

Prerequisites

Supported Environments

Usage

  1. Install Ruin:

    cargo install ruin
  2. Run the script:

    ruin
  3. If you want to set the wallpaper for specific screens (the default behavior is to set the wallpaper on all screens), use the following command:

    ruin -s 0 1
  4. If you want to modify the refresh interval (the default is every 5 seconds), use this command:

    ruin -t 1

Adding Custom Battery Indicator

  1. Create an image with a #8FBCBB color. Use the following ImageMagick command to convert your image:

    convert input_image.png -fill "#8fbcbb" -colorize 100% output_image.png
  2. Copy your image to the config directory:

    cp ./output_image.png ~/.config/ruin/images
  3. Run Ruin with the name of your image as an argument:

    ruin output_image

Custom Color Scheme

  1. Open the colorschemes.yaml file:

    vim ~/.config/ruin/colorschemes.yaml
  2. Add your custom color scheme (colors should be in rgb):

    example:
      charging: [r, g, b]
      default: [r, g, b]
      low_battery: [r, g, b]
      background: [r, g, b]
  3. Run the script

    ruin example

Inspired by bain.

ruin's People

Contributors

unixpariah 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.