Find'N'Run

Filemanagers, partitioning tools, etc.
Message
Author
jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#21 Post by jamesbond »

I thought you could just add the additional directories in the "grep" line? Yes, duplicates will be weeded out anyway. As for $HOME or $XDG, I think recent puppies have both of them set, so I would go with $XDG_DATA_HOME. Btw, /usr/share and /usr/local/share are actually $XDG_DATA_DIRS but nobody uses that in the scripts as far as I know ;)
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#22 Post by SFR »

Ok, v0.9 uploaded.

Thanks &
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#23 Post by LazY Puppy »

SFR wrote:
LazY Puppy wrote:application of the month 03/2015!
Thanks. :lol:
I mean that! 8) :)

In addition modifying this is big FUN.

Now 6 different locations

- /usr/share/applications
- $LP2BPL/$myscripts (Scripts)
- $LP2PPL/$myportableroxappsdir (RoxApps)
- $LP2BPL/$my1portables/$my4portableslinux (Portable Linux)
- $LP2BPL/$my1portables/$my3portableswine (Portable Wine)
- $LP2BPL/$mylocallp2bdl (SFS Modules)

Renamed to RSH's Application-Kiosk (the new one).

Thanks again for the pretty much useful code in Find'N'Run!
Attachments
image-2.jpg
(71.03 KiB) Downloaded 341 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

Jasper

#24 Post by Jasper »

Hi SFR and co-conspirators et al,

Thank you. I am absolutely delighted with version 0.4 and I may not upgrade.

I’ve amended the title, height, width, and position and the tooltips now read:
Input letters ✫ or +
Double click or ENTER (unless ✫)

The ✫ indicates an app that does not work (either because I failed to set up the .desktop file properly or because the app does not work with my hardware).

The + indicates a favoured app (though rarely needed) and placing a + in the search box immediately displays the relatively short list of those apps.

I have many SFS and Wine apps that I would like to make working F ‘n’ R .desktop files of. So any set-up tips from RSH et al would be much appreciated.

However, unlike RSH and his multiple lists I would allocate a symbol to each type so as to be able to extract separate SFS and Wine lists (again editable, with the addition of a +).

My regards
Attachments
F'n'R.png
(39.76 KiB) Downloaded 313 times

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#25 Post by LazY Puppy »

Jasper wrote:I have many SFS and Wine apps that I would like to make working F ‘n’ R .desktop files of. So any set-up tips from RSH et al would be much appreciated.
Attached is a script (fake .gz, as usual) I'm using to create .desktop files from my external Scripts directory.

Path to my Scripts directory is:

- ScriptsPath="$LP2BPL/$myscripts"

which will return:

- /mnt/sdd1/Skripte

It searches directory /mnt/sdd1/Skripte with -maxdepth 2, so it grabs Scripts in /mnt/sdd1/Skripte plus one deeper level (sub-directory, categories of Scripts, example: /mnt/sdd1/Skripte/MouseSettings etc.pp.) to get all the Scripts. Also it skips some files and directories equal to my Menu-Pipes.

I would like to see your code to apply the ✫ or + to the listed files.

Btw.: I have now added a seventh list, my files in:

- $LP2BPL/$mydirsdir

which returns

- /mnt/sdd1/Dateien

used -maxdepth 3 to fit to my setup. Files are sent to a heavily modified defaulthandler. Also added options to send images to defaultimageeditor instead of viewer, as well as to send music files to defaultaudioeditor instead media player.

All the list are refreshed by the content of the single entry widget - how I do prefer it.

See Image...
Attachments
image-3.jpg
(64.99 KiB) Downloaded 282 times
build-desktop-files-from-scripts-dir.gz
(2.33 KiB) Downloaded 340 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

Jasper

#26 Post by Jasper »

Hi RSH,

Thank you for your
build-desktop-files-from-scripts-dir.gz
which I have downloaded and will try later.

I'm sorry I cannot reciprocate your help,
since I added my ✫ and + symbols manually.

My regards

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#27 Post by LazY Puppy »

Jasper wrote:Hi RSH,

Thank you for your
build-desktop-files-from-scripts-dir.gz
which I have downloaded and will try later.
I hope it's somehow helpful.
Jasper wrote:I'm sorry I cannot reciprocate your help,
since I added my ✫ and + symbols manually.

My regards
Never Mind.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#28 Post by LazY Puppy »

Hi.

Again me, just a quick update.

I have made functions/buttons to open directories of my Scripts and RoxApps etc.pp. as well as to update the related lists.

Also I've included a function to have a preview of images in the list of my files, therefor I've again added a second entry field to be able to search for apps and files separately.

A second tab was added wherein all opened windows on all desktops are listed and can be managed, like move them around to different desktops and many more (based on an earlier script by Mochi Moppel).

It's now some kind of a pretty cool Control Center for all my apps, files and additional stuff.
Attachments
image-2.jpg
(108.52 KiB) Downloaded 231 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#29 Post by musher0 »

What a waste of time and talent, as my medieval friend Ockham would say...

Use dmenu2, Laides and Gentlemen, dmenu2...
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Jasper

#30 Post by Jasper »

Hi guys,

I think someone (perhaps L18L) reported findnrun's run time as 22 milliseconds. In any case my searches are, to my eyes, instantaneous.

Seems to me that's time saved not time wasted and I'm delighted SFR wasted his time and talent helping himself, me and others.

My regards

I'll probably have a look at musher0's suggestion, but meantime I'll wait to see if technosaurus (king of speed) has any comment.

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#31 Post by LazY Puppy »

What a waste of time and talent
:lol:

NO! NO! NO!

:lol:

To me it was worth every little milli-second to hack that Find'N'Run Script to my personal needs.

At the current state of my hack, I got immediately Access to all of my Files, internal Apps, external Scripts, RoxApps, SFS Modules, Linux Portables and Wine Portable Apps - by a single GUI.

Executing a Wine App loads a Wine SFS automatically first.
Executing a SFS Module sends it to my SFS-Handler, which offers just to load and run the SFS Module or to edit, add dependencies, mount it to view content etc.pp.

Still Find'N'Run to me is the application of the month! :)

My personal Hack of this script is my personal development of the year! :D

As I said: I had a quick go on dmenu2, but I'm convinced, modifying it to my needs would have taken an equal amount of work, without to be sure to achieve any equal results!

And it would force me to install stuff into my Puppies and to do a remaster - at least once.

By the way:

I have over 4230 Files in the List of my Files and it takes less than a second to find a file (after the .desktop files have been created once). :D
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#32 Post by musher0 »

That was to be expected: a defensive developer! :)
Still developing a logical entity needlessly...

Use dmenu2, Ladies and Gentlemen, dmenu2!!!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#33 Post by LazY Puppy »

musher0 wrote:That was to be expected: a defensive developer! :)
Still developing a logical entity needlessly...

Use dmenu2, Ladies and Gentlemen, dmenu2!!!
I love you too... :wink:
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#34 Post by musher0 »

LazY Puppy wrote:
musher0 wrote:That was to be expected: a defensive developer! :)
Still developing a logical entity needlessly...

Use dmenu2, Ladies and Gentlemen, dmenu2!!!
I love you too... :wink:
;)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#35 Post by recobayu »

Hey, this is very sophisticated!
I think it's very great if it was combined to PupMenu.
And with a little wmctrl and shortcut, it can be so amazing.
;) :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#36 Post by LazY Puppy »

Hey, this is very sophisticated!
I think it's very great if it was combined to PupMenu.
And with a little wmctrl and shortcut, it can be so amazing.
Did you have a look at the screenshot of my hacked version of Find'N'Run a few posts up?

No need for PupMenu, but yes: for my additional functions I'm using wmctrl AND xdotool!

This is really fantastic... :D
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#37 Post by SFR »

@RSH/Musher0: Nice to see your love is blooming. :wink:

Ok, let's make it "final" - version 1.0.
See first post for changelog.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#38 Post by jamesbond »

Still Find'N'Run to me is the application of the month!
Seconded :D

SFR - thanks for the update.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#39 Post by recobayu »

Aah.. I remember now.
Some year ago, I also write a mukstart. It's like find n run.. Here it is:
http://murga-linux.com/puppy/viewtopic. ... 606#722606
My script can just search and then just press enter to run the top of list. Maybe find n run can do this rather than press enter twice for running top of list.
it can more eye candy if find n run use color every two row. I use:

Code: Select all

tree rules-hint="true"
Note:
Watch out your background. :wink: Please try my script in pfix = ram.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#40 Post by jamesbond »

Version 1.0: bug report: In Fatdog, I have two similar menu entries: mtPaint and mtPaint Snapshot. When I typed "mtP" both shows up, but whatever I do (enter enter, or click enter, or double click on the "mtpaint entry") I cannot launch mtPaint - I always get "mtPaint Snapshot".
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Post Reply