Code Monkey home page Code Monkey logo

cleano's Introduction

Cleano v1.0

A Py3-package to clean your desktop. Once the script is run, it alerts the user once in 5 hours to clean the desktop if more than 5 files are present.

Key features

  • The script auto runs and alerts only when the number of files exceeds limit.
  • Alerts user every 5 hours (default).
  • Function to determine top 10 large files in a given directory (default: home) (recursively traverses the directory).
  • Classifies files without extensions.

Other features

  • Can be run as an autostart application in ubunutu.
  • Configurable (limit on number of files, time before alert)

Caveats

  • Works only for Linux
  • Only a prototype (functional but yet to be refined)

Prerequisites

You will need the following additional packages to run the code. Python >= 3

adscheduler
os
sys
platform
re (regular expressions)

Installing

Create a folder called 'Cleano' in home directory. Copy the files in the repo into 'Cleano'.

With the root as 'Cleano', execute the following line (including paranthesis and ampersand)

....~/home/your-name/Cleano$ (python3 cleano.py &)

That's it. This produces periodic alerts to clean your desktop and also does it for you.

Your result will be ....

To autostart script

Add the same line as above (with complete paths) to Startup Applications.

How to launch script at startup

After adding it will look like this:

Screenshot_from_2018_02_25_14_10_14

Now, the process will run automatically on start up.

Note: If the process is autorun, the locations of the files should not be changed.

Authors

Rajalakshmi.V git repo

Acknowledgments

  • I have used Fleep tool (to determine the files without extensions) fleep

cleano's People

Contributors

rajalakshmi-v15 avatar

Watchers

James Cloos 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.