Code Monkey home page Code Monkey logo

Comments (6)

Liupold avatar Liupold commented on May 25, 2024

Here is a idea we can have to_swallow, to_vomit, to_toggle. Which will be list of WID. We can add them using flags and do the operation all at once. (Seems better to me).

from pidswallow.

Liupold avatar Liupold commented on May 25, 2024

For example you can see: https://github.com/liupold/dls

from pidswallow.

SeerLite avatar SeerLite commented on May 25, 2024

Huh that's a really great idea! I'll see what I can do

from pidswallow.

SeerLite avatar SeerLite commented on May 25, 2024

How should --loop be handled, though? Shouldn't it ignore all other actions and go straight to loop mode? I can't see a scenario where I'd combine --loop with other action flags.

from pidswallow.

Liupold avatar Liupold commented on May 25, 2024

Swallow what is in to_swallow toggle what is in to_toggle vomit what's in to_vomit then check if loop is passed (flag) if so run the loop.

If I run

pidswallow -t WID -v WID -s WID #this will do nothing 
pidswallow -t WID -s WID #this will vomit the window 

OR we can just use a pre action case, (similar case statement to before but just set '-V/-g' this will make more sense.

pidswallow -t WID -v WID -s WID #this will swallow
pidswallow -t WID -s WID #this will swallow 

from pidswallow.

Liupold avatar Liupold commented on May 25, 2024

check this out: https://github.com/Liupold/pidswallow/tree/ordered-flag-pre-check

from pidswallow.

Related Issues (20)

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.