Coder Social home page Coder Social logo

Comments (19)

nwg-piotr avatar nwg-piotr commented on August 19, 2024

create a key bind to open a menu that only displays Games application

You mean: after startup, the grid should look as if you've already clicked the "Games" category button, right? If so, it would be possible to pass an argument, e.g. nwg-drawer -cat game, but there's an important limitation: this would not work in the resident mode. If you once start nwg-drawer with the -r flag, all arguments are being passed only once. Each consecutive nwg-drawer command execution just sends the USR1 signal to the resident instance, to trigger a show/hide action (see Running). On hide, the window is being reverted to the initial state. It means: you would be unable to have separate key binding for various categories, if you want to use resident mode.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

I think that would suffice yes.

Couldn't you send a signal for it to change categories? To be honest I don't usually use the resident mode so it wouldn't affect me.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

Thinking more about it, in my use case it would be ideal that when you pass -cat game the Game category is the ONLY available category. It would be even better if we could pass more than one category to the command "-cat game,office,etc" so only the categories passed are displayed.

I am trying to use the application as my game launcher and use some additional categories to organize it. So it I would have games categories like RPG, FPS and etc. When I activate the launcher, only games are displayed but I can still manage the categories.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Couldn't you send a signal for it to change categories?

This makes little sense.

The -cat argument may be added, if you confirm it to be the solution to your issue.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

It doesn't I am sorry.

Did you understand my use case? The cat argument as you first propose would help but allowing to pass multiple categories and ignoring entries not on those categories would be what I am looking for.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Passing multiple categories is not a problem, but be aware, that most of programs have more than one category assigned in their .desktop file.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

Yes, I am aware. I would still have to manage my own .desktop files.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Alright, I'll take a closer look at the code soon.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Could you try and build from the cats_filter branch?

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

So, under the risk of abusing your patience:

I still would like to have the Categories selection UI when multiple Categories are selected. My idea is to launch nwg-drawer --cats Games and then use the secondary Categories to organize my games in different tabs.

Other than that the proposed the branch is running smoothly, thank you very much.

(By the way, did you recover well from your operation?)

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

I'm well, thank you.

I'm not sure how you're going to use the buttons. They only show predefined categories.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

Oh, I see. I was under the impression that the categories were being parsed from the ones defined in the .desktop files. But, I can see now how that would be a challenge to manage.

Well, the update did solve my first problem (create a Category specific launcher) so thank you.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Yes, I couldn't take them from .desktop files, as many apps have numerous unexpected definitions. We would have a very long list.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Sorry, not in this program. I did my best to simplify categories, by assigning all the mess to 8 main categories + "Other", to simplify usage in normal use case. You need a dedicated code to meet your expectation.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

Thank you for you support.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Tell me if the changes on another branch are useful to you. If not, I won't merge, as personally I'm not going to use it ever in my life.

from nwg-drawer.

Figuera avatar Figuera commented on August 19, 2024

They are useful as they simulate the way I am using nwggrid right now. It would be useful to have it in the master branch.

from nwg-drawer.

nwg-piotr avatar nwg-piotr commented on August 19, 2024

Alright, I'll leave them for you.

from nwg-drawer.

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.