Giter Club home page Giter Club logo

rpi_conky's Introduction

rpi_conky

badge

Improved version of Novaspirit's conky script. Newer versions of Conky won't play the old configs due to syntax errors, so this script has been corrected.
Also, I (Botspot) have improved the colors, as the original colors did not look very good together. Screenshot below: screenshot

To Install:

sudo apt install -y conky
wget -O ~/.conkyrc https://raw.githubusercontent.com/Botspot/rpi_conky/master/conkyrc

To make it autostart on boot, create a file at ~/.config/autostart/conky.desktop and place this code into it:

[Desktop Entry]
Name=Conky
Type=Application
Exec=bash -c 'sleep 5;conky -q -d'
Terminal=false
Icon=${DIRECTORY}/apps/Conky/icon-64.png
Comment=system monitoring tool.
Categories=Utility;

To uninstall:

sudo apt purge conky
rm ~/.conkyrc ~/.config/autostart/conky.desktop

Note about the network readout:

By default, this conky configuration is hard-coded to use the eth0 network interface. If you are using WiFi, this needs changing before the network readout will work. In my Pi-Apps installation script, the .conkyrc file is edited if WiFi is detected.
The commands used to accomplish this is provided below, for your convenience:

#change eth0 to wlan0 in conky config if user is currently using WiFi
interface="$(ip addr | awk '/state UP/ {print $2}' | tr -d ':' | head -n 1)"
if [ ! -z "$interface" ];then
  sed -i "s/eth0/$interface/g" ~/.conkyrc
fi

I suppose if you installed conky manually, you can run the above code in your terminal. (Or you could just edit the .conkyrc file.)

rpi_conky's People

Contributors

botspot avatar

Stargazers

Mindula Dilthushan Manamperi avatar Ryan Fortner 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.