trayscale icon indicating copy to clipboard operation
trayscale copied to clipboard

Add option to start minimized to system tray

Open ostrich opened this issue 2 years ago • 5 comments

First, thanks for your great utility.

Second, I have it set to autostart with my desktop environment. An option to start minimized to the system tray would be great.

ostrich avatar Jul 02 '23 22:07 ostrich

There is actually a command-line argument to do just that, --hide-window. I could probably also add an option to start hidden to the settings. I've thought about it before but it seemed kind of redundant.

DeedleFake avatar Jul 03 '23 01:07 DeedleFake

Nice, thanks. I see it's even in trayscale --help. But yeah, a settings option would help people like me who neglect to RTFM 😅

ostrich avatar Jul 03 '23 13:07 ostrich

One potential issue with a preference is that if someone turns that on, presumably accidentally, in an environment without a system tray, such as vanilla GNOME, getting a window will require opening the app twice, which would be weird. Probably not a big deal, but it could lead to some confusion.

I'll look into it and see what I can do.

DeedleFake avatar Jul 03 '23 18:07 DeedleFake

Any idea how to get the Flatpak version to start minimized?

jaymgs avatar Nov 23 '24 21:11 jaymgs

You can use the same command-line option referenced above. That's how I use it locally. If your desktop environment (GNOME does this.) uses $HOME/.config/autostart for stuff that starts at login, just modify the dev.deedles.Trayscale.desktop file in there to add the flag to the Exec= line. That way the autostart version will start minimized but manually starting it won't.

DeedleFake avatar Nov 24 '24 00:11 DeedleFake