Open divinae opened 4 months ago
What are your reasons to ask for this feature?
I mean something different. I would like to hide empty workspaces. So for example, I have 4 workspaces with opened apps on the first and the last. So the widget sould show hide second and third and "1 4"
Okay, but I think that creates ambiguity. Like what happens when you scroll, does it switch to the next desktop or to the next desktop with an active window? Or does it preserve the space for the inactive desktops or does it slide out with an animation?
Can you also share the source of the screenshot so I can look into the project you are referring to?
I'm referring to waybar workspaces module https://github.com/Alexays/Waybar/wiki/Module:-Workspaces the "active-only" flag set. like here: https://youtu.be/Sibpj_o3cOI?feature=shared&t=916
Okay, it does sound like a good idea. I will publish a release for numbered indicators today(seems like not a lot of work). Expect the full thing tomorrow.
Please test and review the last update.
Looks nice!
About the "Show indicators only on window active feature", I have run into a problem. The rest of the work is done, but I am unable to find a way to get the count of open windows on a desktop, while not staying on that desktop.
TaskManager.ActivityInfo {
id: activityInfo
}
TaskManager.TasksModel {
id: taskmanager
groupMode: TaskManager.TasksModel.GroupDisabled
activity: activityInfo.currentActivity
virtualDesktop: pos
filterByVirtualDesktop: true
filterByActivity: true
}
Here, pos
is the index of the indicator. This returns 0 for taskamanager.count
for all pos
.
I'll open this issue on KDE Discuss, but if anyone wants to chip-in some help, they're welcome.
Hi, I would like to be able to show only workspaces with opened windows as numbers. Something like this:![Screenshot_20240227_133623](https://github.com/dhruv8sh/plasma6-desktop-indicator/assets/49128105/7c5f37a3-90c4-4960-963c-bff682492300)