I ran without the list.txt file being there and as you could imagine, my output was a mess. So I added the following after your DIR= line but before your SOURCE= line. To be exact, my if statement started on line 29.

I'm glad you were able to get Anthony Tekatch's
list.txt file extracted. (Others who are interested can copy
and paste it from your above post.)

I, myself, was very impressed with the "professional look" of
MochiMoppel's Xdialog command's window.
(I've attached a screen shot to show this.)

I downloaded grocget-0.6.tar.gz file and clicked on it and scanned its
contents and then selected his "grocget-0.6/list.txt" only and extracted just that
to a small directory I made called "grocery_shopping_for_Linux_stuff" on my
Windows NTFS drive. I put just the "list.txt" and my "yad_groceryshoppinglist.sh"
files in that directory.

I brought that directory up in a ROXfiler window and with a right click, choose
"window" then "terminal here". In my roxterm terminal window which opened, I entered
my script name with ". ./":
. ./yad_groceryshoppinglist.sh
after many cycles of trying, Geany editing and retrying "window" then "terminal here",
I wanted to share the versatility of MochiMoppel code.

Perhaps MochiMoppel's Xdialog script showing how to select file names and this
yad_groceryshoppinglist script showing selecting lines from within one file
will inspire others to code even more useful little script programs.

Can not understand why when I click on Next Track Music button, another instance of mpv is executed.

Because when you click the button, yad becomes the active window and the xdotool sends a Return keystroke - without further instructions of course to the active window. Yad receives the keystroke and applies it to the first button and starts another instance of mpv. You should be happy that the Return key does not go to the button you just pushed as this would result in an infinite loop.

What you need to do is let your command activate the mpv window and then send Return.

Suppose i use YAD script that resides in tray. Can i change icon of this YAD script from other script. I'm thinking to make something similar to Windows notification area. For example when bash script will finish work will change icon of YAD script in the tray eg. for exclamation sign so user will know that there is some message to read. Next when user will click on YAD script icon a message from bash script will be displayed.

Suppose i use YAD script that resides in tray. Can i change icon of this YAD script from other script. I'm thinking to make something similar to Windows notification area. For example when bash script will finish work will change icon of YAD script in the tray eg. for exclamation sign so user will know that there is some message to read. Next when user will click on YAD script icon a message from bash script will be displayed.

OPTIONS
Notification options
--command=CMD
Set the command running when clicked on the icon. Default action is quit if --listen not specified.

--listen
Listen for commands on stdin. See NOTIFICATION section.

--separator=STRING
Set separator character for menu values. Default is |.

--item-separator=STRING
Set separator character for menu items. Default is !.

--menu=STRING
Set initial menu for right-click.

--no-middle
Disable exit on middle click.

--hidden
Doesn't show icon at startup.

--icon-size=SIZE
Set notification icon size to SIZE. This option doesn't works for themed icons.

See NOTIFICATION section for more about separators.

NOTIFICATION
Allows commands to be sent to yad in the form command:args. Possible commands are icon, tooltip, visible, action, menu and
quit.

icon:ICONNAME
Set notification icon to ICONNAME.

tooltip:STRING
Set notification tooltip.

visible:[true|false|blink]
Set notification icon to visible, invisible or blinking states.

action:COMMAND
Specify the command running when click on the icon. Special string "quit" exit the program.

menu:STRING
Set popup menu for notification icon. STRING must be in form name1[!action1[!icon1]]|name2[!action2[!icon2]]....
Empty name add separator to menu. Separator character for values (e.g. `|') sets with --separator argument. Separa‐
tor character for menu items (e.g. `!') sets with --item-separator argument.

quit Exit the program. Middle click on icon also send quit command.

You can try from a terminal window:

Code:

# cat | yad --notification --listen
tooltip:Hello World!

Cut the block above and paste it into the terminal. You should get the default yad icon as a tray icon. Hover the mouse pointer over the tray icon and "Hello World!" should appear. Shell input is still directed to yad, so you can try more commands from the NOTIFICATION section.
Note that yad will exit as soon as my_script (or cat, in this example) will end._________________Fatdog64-801|+Packages|Kodi|Findnrun|+forum|gtkmenuplus

More Info: Saving Yad Window size & position to be redisplayed by user.

A different kind of ad stopper - wolrdwide web.

So we all see the ads on Facebook, Youtube, Yahoo, Downlaod.com, sourceforge, etc.

I want to "hide" (not block) the ads on all these popular websites using Yad Windows that stay on top and contained in the yad windows is piped information about Linux, Joomla, Yad, and other info from others who help makes this happen.

Its really above my head and I'd appreciate feedback on the pipe methods.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum