-
-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Taskbar Feature Request] Add a {name} field #982
Comments
Sounds like it can be covered as the part of #1000 |
similar functionality already exists. Try
|
Thank you, but I knew about {title} and I prefer {app_id}. On the one hand {title} is often very long and for some programs on the other hand it's empty. |
@WillPower3309 , neat tweak, thanks for sharing! @qoheniac , maybe having |
(A maybe capitalized version of) |
Here is what I mean: Waybar/src/modules/wlr/taskbar.cpp Line 112 in 08e1960
This |
Edit: (A capitalized version of) |
If this isn't implemented by end of April I can look into it then (exams will be done then) |
Did some investigation because needed a study break:p
|
The above is very much a rough test built onto handle_app_id, obviously a much more polished version would be made for any potential pull requests as handle_app_name |
Sad update: due to the heavy integration of My changes are on my branch: https://github.com/WillPower3309/waybar TLDR: I don't know how to have waybar call my |
@Alexays , could you please provide an advice here? |
Alternatively, would a pull request be accepted that changes the app_id behaviour to default to name, and display app_id if name doesn't exist? I can't think of a use case where someone would prefer app_id over the application name |
I would rather go for another field like |
I think I can implement it. |
I also put my work on it up, I finished it before I realized that @Anakael did a sweet job of getting it done! Posted my PR anyway in case if it's preferred |
I just built the master branch to see how #1221 works and the name field looks really good. I just noted one thing, if I run waybar, quit it and repeat that process, it sometimes finds all tasks, sometimes some and sometimes none at all. I'm not sure though if this is related to @Anakael's code or some other changes between current master and the latest release version. |
I'll investigate this. It didn't happen before, did it? |
It doesn't happen with Waybar v0.9.8 but with my built of the current state of the master branch. I did not check any versions in between. |
I just built the version right before your changes got merged, i. e.
and the version right after your changes, so
and that's where the behavior emerges. So the problem is somewhere in #1221. |
Ok. I'll check it today. |
Perfect, love it! |
A
{name}
field that works like this: if a.desktop
file is found it returns the value ofName
andapp_id
else.The text was updated successfully, but these errors were encountered: