Skip to content
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

Automatically hide from tray #235

Closed
protist opened this issue May 17, 2021 · 5 comments
Closed

Automatically hide from tray #235

protist opened this issue May 17, 2021 · 5 comments

Comments

@protist
Copy link

protist commented May 17, 2021

I use KDE, which has an option for icons in the tray to be "shown when relevant". For example, the removable-storage icon is only shown when storage is attached, the printer icon when something is printing, and the
updater when there are new updates.

Almost all of the time, I don't need to know the status of my network, because when it's working properly, I can ignore it. However, I do want to know when I have disconnected, or when my VPN drops out. Would it be possible to have cmst hide from the tray in certain situations? I imagine this should be customisable by users.

EDIT: I'm aware of how to change colours of the icons, which gets me halfway there but leaves a gap in my tray.

@andrew-bibb
Copy link
Owner

QT has an option to make the tray icon visible or hidden so that part is easy. Thing I would need to to is figure out a triggering mechanism to change from one to another. I could probably key that into a change in the Connman service status, that is if it the topmost service changes the icon becomes visible. Sort of like I do with the VPN kill switch. Kind of thinking out load now, need to consider exactly how to do this and when to trigger it.

@protist
Copy link
Author

protist commented May 18, 2021

Thanks @andrew-bibb! Sounds promising. Perhaps one option for deciding when to trigger it could be to read the config from ~/.config/cmst/cmst.icon? You could have a key there for visible or hidden?

@andrew-bibb
Copy link
Owner

Started to work on this are realized long time ago I put in an option to manually hide and show the icon. In the Preferences tab, left side about midway down. I'd forgotten I had even done it so probably too well hidden, but it is there.

Still going to continue with the automatic hide and show, just now need to figure how I can make these two similar but different controls work together in some rational manner.

@protist
Copy link
Author

protist commented May 23, 2021

Thanks @andrew-bibb. From my perspective, I had actually already found the manual hide-and-show option, so I didn't think it was hidden too much.

Looking forward to the automatic options though. Thank you again!

@andrew-bibb
Copy link
Owner

After one false start and many side trips just uploaded the implementation of this one. Seems to work as intended so I am going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants