v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
666 stars 58 forks source link

[Request]yad --icons --read-dir #241

Open cou645 opened 1 year ago

cou645 commented 1 year ago

Will it be possible to --read-dir from stdin ? Also have desktop file Comment show on mouse hover?

I'm working on a yad file browser/manager. I'm using yad paned, list and icons --read-dir. My method is i create a map of the system directory structure in a directory in /tmp, ignoring virtual files sytems like /proc, and for each of these create a dektop file alongside it. Then i do the same for files. This dir gets squashed then loaded as an aufs / layer. So then one can use yad to browser the files and folders, opening them according to the desktop Exec string.

Misko-2083 commented 1 year ago

File manager? Bash is slow, a proper solution would be to make an actual file manager. But what's the point when there are many of them. Use gio in scripts, it's simpler. I had that idea last year, and experimented a bit. https://groups.google.com/g/yad-common/c/QfUFtrny4wI/m/gCASOhfsAQAJ

See the script here https://gist.github.com/Misko-2083/04a7be791e0db74ca372036e9fdb5c65

cou645 commented 1 year ago

your file browser looks like what I originally wanted. I'm going to try it out.

My new idea is unique and even if it turns out to be only a learning exercise, I want to complete the task. It has several unique possibilities. One could create several system overlays, with tight control, read only, and certain files and directories excluded ... kiosk-like. Who knows what it will lead to? All i know is that I'm the first to think of it and do it ... a desktop only file browser, everything represented as a desktop file including wifi connection (remember i also did wifi profiles as svg images), self-playing radio station.desktop files. in the case of desktop files it should be possible to write the Exec=command such that it sources itself , ommiting the head , and playing the 'URL=address' directly. Same for websites.... This is unique and worth pursuing imho .

I can but ask! What's the worse can happen!?!?!?!?

cou645 commented 1 year ago

In fact would it be possible also to set a background image with yad --icons --read-dir ... that would do nicelz for a yad pinboard!