YAD - Tips
Maybe you need to use --select-action or add a button that fires the select event. What sort of process to due to the item?
sel () {
echo select event - $1
}
yad \
--list \
--listen \
--dclick-action 'bash -c "dbl %s"' \
--select-action 'bash -c "sel %s"' \
--column 'A' 1 2 3 4 5 < $fifo
fromhttps://groups.google.com/forum/#!topic ... FYTLhtccd4
sel () {
echo select event - $1
}
yad \
--list \
--listen \
--dclick-action 'bash -c "dbl %s"' \
--select-action 'bash -c "sel %s"' \
--column 'A' 1 2 3 4 5 < $fifo
fromhttps://groups.google.com/forum/#!topic ... FYTLhtccd4
Maybe you need to use --select-action
fromhttps://groups.google.com/forum/#!topic ... FYTLhtccd4
Code: Select all
#!/bin/bash -a
mkfifo ${fifo=$(mktemp -u)}
exec {fd}<>${fifo}
sel () {
echo select event - $1
}
yad \
--list \
--listen \
--select-action 'bash -c "sel %s"' \
--column 'A' 1 2 3 4 5 < $fifo
How annoying, to have lost such a good post!
short version is, will --select-action suit your purpose, 'bash -c 'some_function "%s"'
https://groups.google.com/forum/#!topic ... FYTLhtccd4
short version is, will --select-action suit your purpose, 'bash -c 'some_function "%s"'
https://groups.google.com/forum/#!topic ... FYTLhtccd4
short version is, will --select-action suit your purpose, 'bash -c "some_function %s"'
https://groups.google.com/forum/#!topic ... FYTLhtccd4
https://groups.google.com/forum/#!topic ... FYTLhtccd4
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
All your posts are still there. I had to remove the exclamation mark (before "topic") from your URL, You may want to replace it by its HTML entity:stemsee wrote:How annoying, to have lost such a good post!
short version is, will --select-action suit your purpose, 'bash -c 'some_function "%s"'
https://groups.google.com/forum/#topic/ ... FYTLhtccd4
https://groups.google.com/forum/#! ... FYTLhtccd4
And please use the Preview button before you post
EDIT: Removed letter v from URL. HTML entity doesn't seem to work. Google insists on the problematic exclamation mark in #!topic
.
Last edited by MochiMoppel on Wed 21 Feb 2018, 06:21, edited 1 time in total.
Thanks mochimoppel
I did nothing different at all than ever before! And the url changed adding a v
should be
https://groups.google.com/forum/#!topic ... FYTLhtccd4
I did nothing different at all than ever before! And the url changed adding a v
should be
https://groups.google.com/forum/#!topic ... FYTLhtccd4
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
You're welcome. The "v" must have been my fault and I edited my post, but the real problem is the exclamation mark.stemsee wrote:Thanks mochimoppel
I did nothing different at all than ever before! And the url changed adding a v
should be
https://groups.google.com/forum/#!topic ... FYTLhtccd4
I removed surrounding [url] tags from the URL in above quote to make this post visible.
Stemsee's posts starting with http://www.murga-linux.com/puppy/viewto ... 553#983553 look empty to me. I use a Chromium-based browser.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]
Hi Stemsee, you're not a man of many words nowadays
The PM you sent me was also empty.
I'm on Firefox, but I think it doesn't matter, it's because of the exclamation mark in the url.
From Mochi's comments and what I tested, all you have to do is remove the url tags from the google link (so it appears as not clickable, as below) and your posts will reappear.
https://groups.google.com/forum/#!topic ... FYTLhtccd4
Fred
The PM you sent me was also empty.
I'm on Firefox, but I think it doesn't matter, it's because of the exclamation mark in the url.
From Mochi's comments and what I tested, all you have to do is remove the url tags from the google link (so it appears as not clickable, as below) and your posts will reappear.
https://groups.google.com/forum/#!topic ... FYTLhtccd4
Fred
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
The forum software allows url tags when you replace the exclamation mark by its hex representation (%21):fredx181 wrote:From Mochi's comments and what I tested, all you have to do is remove the url tags from the google link (so it appears as not clickable, as below) and your posts will reappear.
https://groups.google.com/forum/#!topic ... FYTLhtccd4
https://groups.google.com/forum/#%21top ... FYTLhtccd4
Hi misko_2083 (or anyone can test below ?),
Question about your Poor man's radio, shared here:
http://murga-linux.com/puppy/viewtopic. ... 382#963382
I'm interested because of the "refresh list" option.
The problem I experienced is very high CPU usage (100%) for the yad proccess after changing category. (see screenshot below from top output)
Switching from default "181.FM" to "Blues" and click "Load Stations" is when it occurs for me, going back to "181.FM" the CPU usage drops back to normal.
Can you reproduce this ? And if you can, any solution ?
EDIT: Got it fixed now by adding Urban to "stations" list:
EDIT2: Attached "stations" with added 'Urban' (not all play, btw), remove fake .gz
Can't explain why, but runs OK now, normal CPU usage.
Thanks for your nice radioplayer concept, now I need to understand how it works, with the pipes etc...
Fred
Question about your Poor man's radio, shared here:
http://murga-linux.com/puppy/viewtopic. ... 382#963382
I'm interested because of the "refresh list" option.
The problem I experienced is very high CPU usage (100%) for the yad proccess after changing category. (see screenshot below from top output)
Switching from default "181.FM" to "Blues" and click "Load Stations" is when it occurs for me, going back to "181.FM" the CPU usage drops back to normal.
Can you reproduce this ? And if you can, any solution ?
EDIT: Got it fixed now by adding Urban to "stations" list:
Code: Select all
## Urban
.....
.....
Can't explain why, but runs OK now, normal CPU usage.
Thanks for your nice radioplayer concept, now I need to understand how it works, with the pipes etc...
Fred
- Attachments
-
- stations.gz
- stations list with added category 'Urban', remove fake .gz
- (11.36 KiB) Downloaded 125 times
-
- top_showing_yad_ high-cpu.png
- Yad extreme high CPU
- (48.71 KiB) Downloaded 375 times
Hi All,
Here's my take on a radio player using yad with the "--paned" option providing a list with radio stations (by clicking 'Load' button).
Much inspired by PMRP from misko_2083, see:
http://murga-linux.com/puppy/viewtopic. ... 382#963382
However wasn't able to understand how exactly it works, so took as a base concept for it from: Victor Ananjevsky's (yad author) "find frontend" example from here:
https://sourceforge.net/p/yad-dialog/wi ... /?limit=50
Thanks also to Stemsee for suggestions about yad "--list --listen" (refresh list) options !
Would love to have the "Now Playing" info as part of the main GUI, but couldn't figure out how, any suggestions are welcome !
Workaround is a "Now Playing" button which activates a small window at right-bottom of screen displaying the title.
Search option has access to large database from "RadioSure" (commercial M$ app) converted to use with this app.
(need to click 'Update Index' first)
Choice for lots of category lists (included in 'playlist' folder), e.g. Rock, Jazz, Country, R&B ...etc...
Possible TODO'S:
- Option to remove from Favorites list (only add is possible now)
- Ability to add custom URL (http://...) to Favorites.
Depends on yad and mplayer installed.
(not sure from which yad version on it supports --paned option, I use v 0.38 )
Extract attached yradio.tar.gz to somewhere.
Run from inside yradio folder: "yradio" script (just click on it).
EDIT: Sorry, found a bad bug: Several stations not playing because of incorrect use of the quotes for option --dclick-action" (and --select-action), fixed now, attached new version.
btw, also removed "mktemp" command from script (previously used for creating variable for named pipes, now done differently) , since it may not be portable between systems.
Fred
Here's my take on a radio player using yad with the "--paned" option providing a list with radio stations (by clicking 'Load' button).
Much inspired by PMRP from misko_2083, see:
http://murga-linux.com/puppy/viewtopic. ... 382#963382
However wasn't able to understand how exactly it works, so took as a base concept for it from: Victor Ananjevsky's (yad author) "find frontend" example from here:
https://sourceforge.net/p/yad-dialog/wi ... /?limit=50
Thanks also to Stemsee for suggestions about yad "--list --listen" (refresh list) options !
Would love to have the "Now Playing" info as part of the main GUI, but couldn't figure out how, any suggestions are welcome !
Workaround is a "Now Playing" button which activates a small window at right-bottom of screen displaying the title.
Search option has access to large database from "RadioSure" (commercial M$ app) converted to use with this app.
(need to click 'Update Index' first)
Choice for lots of category lists (included in 'playlist' folder), e.g. Rock, Jazz, Country, R&B ...etc...
Possible TODO'S:
- Option to remove from Favorites list (only add is possible now)
- Ability to add custom URL (http://...) to Favorites.
Depends on yad and mplayer installed.
(not sure from which yad version on it supports --paned option, I use v 0.38 )
Extract attached yradio.tar.gz to somewhere.
Run from inside yradio folder: "yradio" script (just click on it).
EDIT: Sorry, found a bad bug: Several stations not playing because of incorrect use of the quotes for option --dclick-action" (and --select-action), fixed now, attached new version.
btw, also removed "mktemp" command from script (previously used for creating variable for named pipes, now done differently) , since it may not be portable between systems.
Fred
- Attachments
-
- yradio.tar.gz
- v0.0.2, bug fixed for double-click action
Extract to somewhere and run 'yradio' from inside directory - (251.02 KiB) Downloaded 290 times
-
- yradio.jpg
- Yradio GUI
- (66.15 KiB) Downloaded 1401 times
Last edited by fredx181 on Tue 13 Mar 2018, 20:28, edited 1 time in total.
Euh... Fredx?
You do with your time what you will of course. If your radio app above is practice
for becoming an even greater yad virtuoso than you are already, that's fine.
Otherwise, why go through the trouble? There already exist a host of good radio
players on Linux: aqualung, deadbeef, mplayer,mpv, etc.
Just a thought.
You do with your time what you will of course. If your radio app above is practice
for becoming an even greater yad virtuoso than you are already, that's fine.
Otherwise, why go through the trouble? There already exist a host of good radio
players on Linux: aqualung, deadbeef, mplayer,mpv, etc.
Just a thought.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)