shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Trocar ícone do yad --notification


From: Osvaldo Filho
Subject: Re: [shell-script] Trocar ícone do yad --notification
Date: Wed, 8 Jul 2015 17:19:32 -0300

No YAD temos os Dialog Options sendo que um deles é o --icons. 

--icons
Display box with shortcut icons.
Ai vamos para os General Options que possuem o --image-path.
--image-path=PATH
Add specified path to the standard list of directories for looking for icons. This option can be used multiply times.

Há dentro de Texte Entry Options a opção --ricon-action.
--ricon-action=CMD
Specify a command which will be run when the right icon clicked. Output of command will be set as entry text.

Any extra data specified in command line adds as an items of combo-box entry, except of numeric mode.

If icon specified and icon action is not given, click on icon just clear the entry. Numeric fields will ignore the icons.

Para concluir temos mais duas opções:

Display a box with all of the installed desktop applications

1. yad --icons --read-dir=/usr/share/applications

2. YAD icon browser is a graphical tool for discover icons in current or user-specified GTK+ icon theme. Launch it as
yad-icon-browser [theme]









2015-07-08 17:09 GMT-03:00 Luiz Alberto address@hidden [shell-script] <address@hidden>:
 

On 08-07-2015 16:38, Alfredo Casanova address@hidden [shell-script] wrote:
 
Estava dando uma lida no https://code.google.com/p/yad/wiki/NotificationIcon e vi a opção --notification do Yad.

Tentei aqui e não consegui (pode ser algo simples que eu tenha deixado passar) alterar o ícone da notificação a cada clique, pra fazer uma espécie de switch on-off com shell script, que executasse alguns comandos e, em caso de sucesso, trocasse o ícone.

Alguém pode me dar um help?



Mostra as tuas tentativas, para que se veja onde esta o possível erro.




--
Att,

Osvaldo Filho.

Técnico em TI/Redes - Universidade Federal do Ceará. 
Sócio-fundador do i-TIC Digital Livre - Informação Livre para todos! 
Twitter i-TIC Digital Livre: @iticdigital
TUX-CE Member.
Pós-graduando em MBA em Arquitetura de Redes e Cloud Computing - Instituto BSB.
Graduado em Redes de Computadores - Centro Universitário Estácio do Ceará.
Técnico em Conectividade com Extensão em Desenvolvimento de Software - IFCE (Cefet).
Graduando em Telemática - IFCE (Cefet).
Novell Datacenter Technical Specialist.
Linux Professional Institute Certified Level 1.
Novell Certified Linux Administrator (CLA).

Facebook: Osvaldo Filho
Twitter: @osvaldofilho

reply via email to

[Prev in Thread] Current Thread [Next in Thread]