Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Unexpected Tray Behavior in Ax-Shell

Open wallpaperbank opened this issue 1 year ago • 24 comments

I keep fcitx5 running at all times. Under Waybar, switching input languages automatically updates the tray icon to show the current layout; Ax-Shell’s default setup doesn’t do this.

Likewise, when I minimize apps like Spotify to the system tray, right-clicking their icons does nothing, so I have to launch them from the terminal each time.

Is there a configuration or extension that can restore dynamic input-method icon updates and full tray-icon interaction, similar to Waybar?

Using Hyprland, Arch

wallpaperbank avatar May 06 '25 21:05 wallpaperbank

I also experience this behavior, I'm not sure the right-click menu is even implemented for the tray right now?

brys0 avatar May 07 '25 01:05 brys0

This isn't Ax-Shell, but a Gray issue. I've been trying to find a way to fix it for a really long time. Also, right-click works just fine. What do you mean?

Image

Axenide avatar May 07 '25 03:05 Axenide

When attempting to right click an app with a tray it just simply does nothing. I'd give you logs, but there are none when trying to right-click. Perhaps maybe gray is not installed properly? I'm not using arch, so it's certainly possible, I manually compiled gray.

brys0 avatar May 07 '25 04:05 brys0

When attempting to right click an app with a tray it just simply does nothing. I'd give you logs, but there are none when trying to right-click. Perhaps maybe gray is not installed properly? I'm not using arch, so it's certainly possible, I manually compiled gray.

What does work is left clicking, which in vesktop case just opens up the application.

brys0 avatar May 07 '25 04:05 brys0

That's weird. It works in every device I have, and in VMs. Could you try creating a tmux session and right-clicking the item in the widget? SUPER + T, name it whatever you want or just hit Enter, SUPER + T again and right-click the item. It should open a right-click menu.

Axenide avatar May 07 '25 05:05 Axenide

ah-hah, interestingly, right clicking selects the search box at the top, not the session, left clicking works as expected. Because this is just gtk components i have a feeling its something to do with the gtk version maybe? I don't think any of your code would be the issue really.

brys0 avatar May 07 '25 23:05 brys0

https://github.com/user-attachments/assets/0ed91c4c-21bf-4e60-8397-fb573ace0a9f

brys0 avatar May 07 '25 23:05 brys0

Alright, can confirm your events/gtks events are working. What I can't confirm is whether or not Gray or whatever underlying tray manager is actually working. I'm not exactly sure if it's even possible to get logs from that.

brys0 avatar May 07 '25 23:05 brys0

~Wait lol, what? Automatically updates?~

Never mind this is just the browser name 😂

brys0 avatar May 07 '25 23:05 brys0

Ah hah, I may have figured out the issue! OP, what is your monitor settings?

I have two monitors, one is an ultrawide, the other is 4k. Here is the relevant output of my hyprland.conf

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=DP-2, 3840x2160@60, 0x0, 1.5
monitor=DP-1, 3440x1440@144, 0x1440, 1

It appears only my second monitor works (4k), not my first. (ultrawide) Commenting out either monitor resolves the issue, and I can access tray icons.

brys0 avatar May 07 '25 23:05 brys0

Ah... I only have one monitor, that's starting to be a problem with this project lol Well then, I'll talk with the Fabric dev to see if he can do anything to avoid having to comment anything. :)

Axenide avatar May 07 '25 23:05 Axenide

Happy to help where I can, I don't code in python typically, but I can do my best to try and PR issues as they arise..

brys0 avatar May 07 '25 23:05 brys0

Okay, more weirdness. It's only an issue when the monitors are stacked vertically? For whatever reason it seems Gray really doesn't like that. Treating as if they are side by side in hyprland.conf works fine, I can see the tray menu and everything. This behavior is really strange, I'll attempt to investigate further if I can.

brys0 avatar May 07 '25 23:05 brys0

I just tried and failed to get anything working. Well I could get it working by completely removing the menu widgets ability to align with the tray icon.. But yeah, thats not a fix.

brys0 avatar May 08 '25 02:05 brys0

Can confirm i have 2 monitors as well, running the shell on my 2nd monitor made right clicking work, but main still nothing

wallpaperbank avatar May 08 '25 06:05 wallpaperbank

also for the fcitx5 updating issue, i can see that it updates correctly if i win + alt + b to refresh the shell then it displays the correct language but frozen until i force reload it again if that is to any help

wallpaperbank avatar May 08 '25 06:05 wallpaperbank

Can confirm i have 2 monitors as well, running the shell on my 2nd monitor made right clicking work, but main still nothing

Are they stacked vertically? In your hyprland config? (One on top of the other)

brys0 avatar May 08 '25 12:05 brys0

Can confirm i have 2 monitors as well, running the shell on my 2nd monitor made right clicking work, but main still nothing

Are they stacked vertically? In your hyprland config? (One on top of the other)

no, one is standing vertically on the left, the the main one on the right is like normal

wallpaperbank avatar May 08 '25 15:05 wallpaperbank

Can confirm i have 2 monitors as well, running the shell on my 2nd monitor made right clicking work, but main still nothing

Are they stacked vertically? In your hyprland config? (One on top of the other)

no, one is standing vertically on the left, the the main one on the right is like normal

Can you show me your hyprland config for your monitors?

brys0 avatar May 08 '25 17:05 brys0

Can confirm i have 2 monitors as well, running the shell on my 2nd monitor made right clicking work, but main still nothing

Are they stacked vertically? In your hyprland config? (One on top of the other)

no, one is standing vertically on the left, the the main one on the right is like normal

Can you show me your hyprland config for your monitors?

# Generated by nwg-displays

monitor=DP-1,[email protected],1200x0,1.0,bitdepth,10,vrr,1
monitor=DP-2,[email protected],0x0,1.0,bitdepth,10
monitor=DP-2,transform,1

wallpaperbank avatar May 08 '25 17:05 wallpaperbank