Comments (19)
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.
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.
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.
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.
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.
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.
Yes, I am aware. I would still have to manage my own .desktop
files.
from nwg-drawer.
Alright, I'll take a closer look at the code soon.
from nwg-drawer.
Could you try and build from the cats_filter
branch?
from nwg-drawer.
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.
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.
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.
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.
from nwg-drawer.
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.
Thank you for you support.
from nwg-drawer.
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.
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.
Alright, I'll leave them for you.
from nwg-drawer.
Related Issues (20)
- Dead icons in nwg-drawer HOT 5
- Dotted lines not in drawer.css HOT 3
- nwg-drawer send string to search from command line HOT 5
- Can't click on waybar when nwg-drawer is open HOT 3
- Issues on touch devices HOT 3
- [CHANGED BEHAVIOR] New installation opens default list differently, can't fix HOT 6
- Uninstalled apps impossible to unpin HOT 1
- Drawer not following CSS with newest update HOT 2
- New option --config HOT 1
- /tmp/nwg-drawer.lock was owned by other user HOT 1
- nwg-drawer upgrade from 0.2.8 to 0.3.0 broke HOT 1
- Non-ascii character problem in menu name shortening HOT 6
- Specify icon theme HOT 7
- Panic when run pkill -USR1 nwg-drawer HOT 6
- Launching thunar from nwg-drawer opens in sway config directory HOT 2
- feature: prefer most used applications HOT 1
- Add CI HOT 2
- Launching certain apps HOT 10
- Change term overriding variable and improve error handling? HOT 4
- Some icons appear smaller and are offset when searching HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwg-drawer.