GithubHelp home page GithubHelp logo

riccardoravaro / bash-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asheeshr/bash-scripts

0.0 1.0 0.0 164 KB

Small utilities that come handy

License: GNU General Public License v2.0

Shell 100.00%

bash-scripts's Introduction

Bash-Scripts

Some useful shell scripts.

notify-highload.sh

This script generates a notifcation whenever the CPU load increases beyond a specified limit. There are many customization options available via command line parameters.

  • Use -a to enable for audio notifications (Disabled by default)
  • Use -g to enable for desktop notifications (Disabled by default)
  • Use -v for terminal notifications (Disabled by default)
  • Set frequency of check using -p <seconds>
  • Set the limit for high CPU usage using -l <number>. This could be any number greater than 0. The scale is a percentage scale, so ideally it should be between 90-100.
  • Choose which load average to use with the -t <minutes> option. This can be either 1,5 or 15.
  • Set gap between notifications using -n <seconds>
  • Add initial delay to load checking using -b <seconds>

These options will last only throughout that specific run of the script. You should use these options to test and figure out what settings work out for you. once you know what changes you need to make, you can directly edit the configuration file ~/.highload.cfg using any editor.

To use this script:

  • Create a file called notify-highload.sh and paste the code or simply git clone this repository.
  • Give the script execution privileges using chmod +x ./notify-highload.sh
  • Run from terminal or add it to your startup applications. Use atleast one of -a or -g to enable notifications.
Tested On
  • Ubuntu 12.04 LTS

Work in Progress

  • notify-hdspace.sh

Planned Scripts

- notify-hdusage.sh - notify-wifinew.sh - notify-bluenew.sh

bash-scripts's People

Contributors

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