Code Monkey home page Code Monkey logo

toggled's Introduction

Toggled




A simple tool to toggle systemd services, hence toggled.

XFCE doesn't have dynamic panel launchers, which poses a significant challenge for forgetful users. The user cannot see any change after clicking on a launcher. Since there is no dynamic icon change, how can the forgetful user know if they clicked on a launcher or were about to? Fear no more, forgetful users—toggled is here to help. It nonchalantly runs with root privileges so desktop entries can toggle services on/off without tapping into dark magic. Indeed, toggled is a bad boy.

Compile/Install/Remove

$ [sudo] make [compile|install|remove] [y] [SERVICE={all|service_name}]

The position of the arguments is not important, more details are in the Makefile.

Example

Install all desktop entries from the etc/ without prompting:

$ sudo make install y SERVICE=all

Check README in etc/ for more details about adding new desktop entries.

Usage

$ toggled {service|--status|--sync-icons} [on|off]

Example

toggled can be used as a fidget toy, allowing manic users to unleash their inner beast in two ways:

  • Do more than 10 CPS on the XFCE panel launcher.
  • Run toggled minidlna like hell in the terminal.

Or, to toggle the crap out of minidlna:

for (( i = 0; i < SRANDOM; ++i )); do
    toggled minidlna
done

Some services like to be toggled, others not so much (start-limit-hit). Toggle consensually...

Autocomplete

The first argument will be autocompleted with a service name or {--status|--sync-icons}, and the second with [on|off].

toggled <tab><tab>

Only running services are shown if the first argument is empty. Otherwise, it autocompletes any service name.

toggled's People

Contributors

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