Code Monkey home page Code Monkey logo

i3blocks-gradient-temp's Introduction

gradient-temp

License: GPL v2

A temperature indicator for i3blocks, colored according to heat.

Installation

Requirements

Optional

  • fonts-font-awesome

Command-line options

Usage: ./gradient-temp [<options>] <command> [<args>]

Display a temperature indicator using lm_sensors for i3blocks.

Commands:
  query <sensor>            query sensor
  help                      display help

Options:
  -f            display temperatures in fahrenheit
  -G            disable color gradient
  -c <temp>     override critical temperature
  -m <temp>     override maximum temperature
  -h            display this help and exit

Guide

Copy the blocklet configuration in the given i3blocks.conf into your i3blocks configuration file, the recommended config is:

[gradient-temp]
label=&#x1f321;
markup=pango
command=$SCRIPT_DIR/gradient-temp
interval=10
instance=__REPLACE_ME__

#FONT=FontAwesome
#GRADIENT=true
#FAHRENHEIT=false
#COLOR_TEMP=white
#COLOR_GRADIENT_START=#0000FF
#COLOR_GRADIENT_END=#FF0000
#SYMBOL_C=&#x2103;
#SYMBOL_F=&#x2109;
#OVERRIDE_CRIT_TEMP=90
#OVERRIDE_MAX_TEMP=100

Set the instance variable to the sensor to monitor, see sensors -u.

Customization

The following can be set in your i3blocks.conf in newer versions if i3blocks, in older versions (<= 1.4-4) you can customize using the program options. The following are configurable:

Variable Type Option Description
FONT string -f <font> Font for text and symbols
SENSOR string -s <sensor> The sensor to read
GRADIENT boolean -G Whether or not to use the color gradient
FAHRENHEIT boolean -H Whether or not to use fahrenheit
COLOR_TEMP string -t <color> Color of text when not using the color gradient
COLOR_GRADIENT_START string -S <#color> Start color for gradient; Must be a hex triplet prefixed with #
COLOR_GRADIENT_END string -E <#color> End color for gradient; Must be a hex triplet prefixed with #
SYMBOL_C string -C <symbol> Symbol for celsius
SYMBOL_F string -F <symbol> Symbol for fahrenheit
OVERRIDE_CRIT_TEMP float -c <temp> Override critical temperature
OVERRIDE_MAX_TEMP float -m <temp> Override maximum temperature

License

gradient-temp is released under GNU General Public License v2

Copyright (C) 1989, 1991 Free Software Foundation, Inc.

i3blocks-gradient-temp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zevjr

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.