Giter VIP home page Giter VIP logo

frappuccino's Introduction

Frappuccino

A dirty response to dev's skill issues in installing Caffeine

What is Frappuccino?

Following the Caffeine, Espresso and so on trend, Frappuccino is probably the most lightweight way to keep your Linux system awake forcefully.

Why not Caffeine?

I am aware that this is probably just a problem of mine, but I can't seem to install Caffeine on Arch for some obscure reason so I wrote my version.

How does it work?

Frappuccino is just a quick wrapper around systemd-inhibit that creates a service and an infinite 2-seconds loop logging in the service logs. The logging loop is the argument to systemd-inhibit that will thus prevent any shutdown/sleep/hibernation to happen.

Is it safe / compatible with ...?

Honestly, who knows. But being an innocent script and provided you don't have any other frappuccino named services, the worse that can happens is that it does not work.

Installation

Clone or download this repository in your /home/username/ directory.

cd
git clone https://github.com/thecookingsenpai/frappuccino
cd frappuccino

Now give the installation file the right permissions and execute it:

chmod +x install.sh
./install.sh

Done!

Management

To inspect the service:

sudo systemctl status frappuccino

This should show you some logs lines with the most recent timestamp.

To start/stop the service:

sudo systemctl start frappuccino
sudo systemctl stop frappuccino
sudo systemctl restart frappuccino

The service is automatically enabled for autostart. You can remove it with:

sudo systemctl disable frappuccino

And, vice versa:

sudo systemctl enable frappuccino

Performances and workload

Having a 2 seconds sleep, this script is basically guaranteed to have 0 impact on performance even on small systems like a Raspberry Pi 0 (on which I am aware isn't needed but you get the point).

License

This software is released under the CC BY-NC-SA 4.0 License.

frappuccino's People

Contributors

thecookingsenpai avatar

Stargazers

 avatar

Watchers

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