libvibrant / vibrantLinux

A tool to automate managing your screen's saturation depending on what programs are running
GNU General Public License v3.0
128 stars 7 forks source link

Add support for KDE Plasma 6 system tray #63

Open Tiagoquix opened 2 weeks ago

Tiagoquix commented 2 weeks ago

Hi there.

Currently, vibrantLinux does not show in the system tray when hidden/minimized. To access it, I have to terminate the program and execute it again for it to correctly work.

The reason is that if I don't terminate it first I'll have two instances of vibrantLinux and they will conflict when setting vibrance.

If possible, I would like to request system tray support, and also only allowing one instance of the program to be executed at any given time.

Thank you for your attention.

Jota-veh commented 1 week ago

Hi, how can I make vibrant linux start hide/minimized in tray? i'm using xfce manjaro

Tiagoquix commented 1 week ago

Hi, how can I make vibrant linux start hide/minimized in tray? i'm using xfce manjaro

Add --hidden as an additional flag to the Exec line in the ~/.config/autostart/<vibrantLinux file>.

For example, here's the Exec line of my ~/.config/autostart/io.github.libvibrant.vibrantLinux.desktop file (I'm using the Flatpak version):

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=vibrantLinux io.github.libvibrant.vibrantLinux --hidden
Jota-veh commented 1 week ago

Hi, how can I make vibrant linux start hide/minimized in tray? i'm using xfce manjaro

Add --hidden as an additional flag to the Exec line in the ~/.config/autostart/<vibrantLinux file>.

For example, here's the Exec line of my ~/.config/autostart/io.github.libvibrant.vibrantLinux.desktop file (I'm using the Flatpak version):

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=vibrantLinux io.github.libvibrant.vibrantLinux --hidden

Peek 2024-06-21 20-47

Tiagoquix commented 1 week ago

The file is a symbolic link.

As far as I know, neither hard nor symbolic links should be present in ~/.config/autostart/. This directory requires a specifically-formatted .desktop file to work correctly.

XFCE should have a menu to edit autostart entries (like the one in this issue). Delete that link in your ~/.config/autostart/ and use the XFCE tool to add the vibrantLinux binary to the autostart section. As it seems, you're using it from the Arch User Repository.

If that doesn't work, you'll have to manually create an autostart entry inside that folder.

Jota-veh commented 1 week ago

The file is a symbolic link.

As far as I know, neither hard nor symbolic links should be present in ~/.config/autostart/. This directory requires a specifically-formatted .desktop file to work correctly.

XFCE should have a menu to edit autostart entries (like the one in this issue). Delete that link in your ~/.config/autostart/ and use the XFCE tool to add the vibrantLinux binary to the autostart section. As it seems, you're using it from the Arch User Repository.

If that doesn't work, you'll have to manually create an autostart entry inside that folder.

that made the trick, valeu tiagão, vc é fera! Peek 2024-06-21 20-47

Tiagoquix commented 1 week ago

tmj, meu bródi!