Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-05-29 09:45:18

HerrHolle
Member
Registered: 2024-05-28
Posts: 5

[SOLVED ]howto change Icon of multiple selection starter with cmd line

Hi all,

there are some similar problems how to modify panel in this forum, but i didn't found a solution for this special prob.

I wrote a bash script and created a multiple choice starter on the panel:

starterIcons

This both starters call this script with different options. Additional i selected the option "show last used element in panel":

starterSettings

That works fine. The question now is:

I am looking for the solution to sync the panel icons when the script is called from command line and not by
clicking on the menu icons. This means the last called script should display the corresponding icon in the panel when called
from command line.

I experimented with some calls of

exo-open
gtk-launch
exo-desktop-item-edit
xfconf-query

but didn't found an command or option in the docs to solve this.

Any ideas?

Last edited by HerrHolle (2024-06-01 18:45:25)

Offline

#2 2024-05-29 10:03:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,313

Re: [SOLVED ]howto change Icon of multiple selection starter with cmd line

Hello and welcome.

This setting/functionality does not seem to be accessible outside of the code/memory of the running app. (https://gitlab.xfce.org/xfce/xfce4-pane … eads#L1508). There is no way to currently access this that I can see. You could create an enhancement request to see if the developer will consider adding functionality to allow someone to manually manipulate this order.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-05-29 10:58:34

HerrHolle
Member
Registered: 2024-05-28
Posts: 5

Re: [SOLVED ]howto change Icon of multiple selection starter with cmd line

Thanks for the link to the corresponding code snippet! Let's see if i can write a little hack around. But first reading and understanding the code. I am more fimilar with qt than gtk.

Offline

#4 2024-05-31 20:59:44

HerrHolle
Member
Registered: 2024-05-28
Posts: 5

Re: [SOLVED ]howto change Icon of multiple selection starter with cmd line

found a solution using the xfce4-genmon-plugin. I will report on this in detail later.

Offline

#5 2024-06-01 18:27:37

HerrHolle
Member
Registered: 2024-05-28
Posts: 5

Re: [SOLVED ]howto change Icon of multiple selection starter with cmd line

a good solution is to use buildt-in functions from xfce4.
I discovered the xfce4-genmon-plugin that i didn't know yet.

The combination of a multiple starter plugin with the genmon-plugin
met my requirements in terms of appearance and function.

multipleStarter PNG

each icon starts a different config script. Another helper script
reads the current configuration and returns an string with
xml code that points to the icon. This string is parsed by the
xfce4-genmon-plugin and force the plugin to display a icon of
my choice:

tor-Exit-New1.png

Offline

#6 2024-06-01 18:30:11

HerrHolle
Member
Registered: 2024-05-28
Posts: 5

Re: [SOLVED ]howto change Icon of multiple selection starter with cmd line

a good solution is to use buildt-in functions from xfce4.
I discovered the xfce4-genmon-plugin that i didn't know yet.

The combination of a multiple starter plugin with the genmon-plugin
met my requirements in terms of appearance and function.

tor-Exit-New.png

each icon starts a different config script. Another helper script
reads the current configuration and returns an string with
xml code that points to the icon. This string is parsed by the
xfce4-genmon-plugin and force the plugin to display a icon of
my choice:

tor-Exit-New1.png

Offline

Board footer

Powered by FluxBB