Change taskbar menu in Tauri - window-managers

I'm using Tauri and would like to change the menu items shown when clicking my application in the taskbar using the right mouse button (Windows/Linux) or double click (MacOS).
For example Firefox shows "Open a New Window" and music players often show "Play/Pause" or "Next track" buttons. How to do that with Tauri?
I'm aware of SystemTrayMenu in Tauri, but that only seems to affect the system tray, not the task bar.
(What I mean by "taskbar": the line of application icons that you click to open them, and that usually indicate which ones are running. I think MacOS calls it Dock, in Windows it's at the bottom between start button and clock, and Linux isn't very homogeneous but in Ubuntu it's vertically on the left by default. I do not mean the system tray of usually smaller icons that are almost always next to the clock, that are usually more like background services. I.e. I mean where your browser usually shown up, not where your VPN usually shows up.)

Tauri does not support this at the moment (2022-06-27). You may file a feature request.

Related

Win 10: Any way to determine which monitor's taskbar the user clicked to launch an application?

I have a multi-monitor config that duplicates the task bar on each monitor. I also have an application with an icon in the taskbar (thus it shows on all monitors), and I'd like this application to behave differently depending on which monitor the click came from.
Is it possible to determine which monitor's taskbar was used to launch that app? I would just need the API function names (rather than actual code).
Thanks!
Whether or not what I asked in my OP is possible, I found a way to do what I want: Immediately upon launch, I obtain the current mouse position in absolute coordinates. This allows me to determine which monitor the mouse is on, which is almost certainly the monitor holding the taskbar icon used to launch the application.

Xcode 10 - how to pin UI element library window?

I'm laying out UI on a storyboard using the new, controversial library button which has been moved up.
This is driving me crazy - I want to be able to "PIN" this window to a secondary monitor so I can always see available components as opposing to having to click that button every single time I need an element. Currently it disappears, even on secondary monitor once I shift focus to the view controller on screen.
How do I pin the UI Elements library to be able to always see it ?
You can press the option button in keyboard and click in the library window, it's will hold
Picture of library windown

What causes different icons to appear on different monitors in Windows 10?

We have customers reporting an issue with icons not appearing correctly in Windows 10. I am not able to reproduce the issue with our application, but it is similar in appearance to something that's happening with other programs on my computer. The first screenshot below is from a single computer. It is my task bar on my left and middle monitors. Notice that the "notepad++" icon on the left (it's the highlighted/active icon) is the original icon with the little chameleon sitting on a pencil (you will have to zoom in) and the one on the right just shows the text "n++".
Similarly the Sql Developer icon (immediately to the right of N++) also looks different on different monitors (demonstrating that even when the app's not running this is an issue).
In fact, as I was writing up this question I found that there is a difference between two means of getting at the icon resources in notepad++.exe. If I use IconsExtract (third party tool) on the exe I get the "n++" style icon, but if I right click on N++ in the task bar > Choose properties > Click "Change Icon" I get the chameleon on a pencil icon. You can see these two overlaid in the second image.
I can't for the life of me figure out how windows decides which icon to put where. I would be satisfied with a response that just told me where the two different n++ icons really are.
What it looks like on my monitors
Comparing the two methods of seeing icons
(Don't be fooled by the second chameleon which does appear to be the same.
I showed this to a coworker today and he knew the answer... the taskbar on the left was my laptop and I have configured the "size of text, apps, and other items" under "scale and layout" in the "display settings" for that screen to 150%. Changing the size to 100% caused the icons to become the same across all taskbars. I'm still looking for a good article with the details as to why, but changing the size definitely fixes the issue.

Dock logcat window on a side of Android Studio

I hope not to be off topic.
I consider Android's logcat window in Android Studio horribly annoying, even working with two monitors.
To open the logcat window, that often needs to be fairly big, my procedure is:
click below on "Android Monitor"
select the current running device (one time only)
click on that tiny and almost invisible icon on the extreme right
reduce again the Android Monitor that I don't need at all
most of the times resize and move the logcat window.
Whenever a change has to be written or something has to be seen on the emulator, the logcat window needs to be moved or closed, because it stands on top of every window, and this leads to perform that same sequence again after maybe few minutes.
Debugging using logcat becomes a pain, made of opening and closing that same window dozens of times.
I want that window to popup or dock automatically with one single icon click or with a key combination from the right, or the left, like for example "Android Model", without getting crazy every time. One click shows it, one click hides it.
Is it possible?

In gnome 3, how to let a window get focus but not on the top?

Windows get focus is meaning that you can type in something in that. But at the same time, I hope that windows not to cover some others. How to config gnome 3 to implement that?
Leaving a window in focus though not on top of the screen is quite easy in Gnome. It is possible to give each and every window a special attribut which will shift their priority on the screen.
First, right click the titlebar of the application which should always be on top. A small menu should pop up. Now just select the option "Always on top" and you are done. This option may be parsed to multiple windows. Independently of which window is in focus, the application with this attribute will always cover it.
By the way the so called "Titlebar Actions" can be configured through the gnome-tweak-tool. Under the "Windows" tab you may define what should happen on a double click, a middle click or a secondary/right-mouse click.

Resources