Giter VIP home page Giter VIP logo

Comments (6)

Merrit avatar Merrit commented on July 23, 2024
❯ flatpak run codes.merritt.Nyrna --help
Nyrna - Suspend games and applications.


Run Nyrna without any arguments to launch the GUI.

Supported arguments:

    --[no-]minimize    Used with the `toggle` flag, `no-minimize` instructs
                       Nyrna not to automatically minimize / restore the active
                       window - it will be suspended / resumed only.
                       (defaults to on)
-t, --toggle           Toggle the suspend / resume state for the active window.
                       ❗Please note this will immediately suspend the active
                       window, and is intended to be used with a hotkey - be
                       sure not to run this from a terminal and accidentally
                       suspend your terminal! ❗
-v, --verbose          Output verbose logs for troubleshooting and debugging.

Looks like I need to document this somewhere other than in the program! Do these cli interfaces work for your usecase?

from nyrna.

R15H avatar R15H commented on July 23, 2024

Yes, it would. Is this implemented in the windows version? I tried it and it simply ignores any arguments.

from nyrna.

Merrit avatar Merrit commented on July 23, 2024

It is in the Windows version yes, though you can't see the help text like I showed there because Windows doesn't show CLI output.

Did you try --toggle?

PS C:\Users\Merritt\Downloads\Nyrna-Windows-Portable> sleep 5 && .\nyrna.exe --toggle

I ran this, switched to Notepad, and after the 5 second delay it suspended it. Ran again and Notepad resumed.

Can also be set as a custom shortcut with a hotkey. Though I am curious, does something about Nyrna's built-in hotkey not work for you that you'd prefer a CLI interface?

from nyrna.

R15H avatar R15H commented on July 23, 2024

Indeed it works! Thank you!

Nothing wrong with the hotkey feature. I'm building a set of abstractions over my desktop enviroment. I want to have all apps, no matter how heavy, always open and then automatically hide them according to the task I'm focusing on. So I will be using this as dependency rather than directly. I will be sure to reference this repo in the Info page. :) Again Merrit, thank you.

from nyrna.

Merrit avatar Merrit commented on July 23, 2024

Glad to hear it is working for you! πŸŽ‰

Enjoy 😁

from nyrna.

Merrit avatar Merrit commented on July 23, 2024

I rebuilt the Nyrna website with better docs, and documented this here:

https://nyrna.merritt.codes/docs/hotkey#cli

from nyrna.

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.