Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 19 Nov 2017, 22:17
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
A MRU[F/D] script to help you recall the apps you ran
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Fri 30 Jun 2017, 16:00    Post subject:  

My pleasure, slavvo67.
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1425
Location: The other Mr. 305

PostPosted: Fri 30 Jun 2017, 22:20    Post subject:  

Looks like it's not working on 64bit RU Xerus64. It's 32bit only, I'm guessing?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Fri 30 Jun 2017, 22:32    Post subject:  

slavvo67 wrote:
Looks like it's not working on 64bit RU Xerus64. It's 32bit only, I'm guessing?
Yep.

It says so, previous page, 3rd post from bottom, 1st paragraph, here ! Smile

vovchik provided the support executables for a 64-bit version last Fall, but a
test on dryfalls' 64-bit "Just Lighthouse" was iffy. I haven't touched that
version since then.

Sorry...

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Tue 04 Jul 2017, 16:19    Post subject:  

Hello again.

As a reminder, here are the history files this "Recents" script searches
and lists: (Edited July 6 2017)

General:
the recently-used.xbel file at /root/.local/share (with related directories)

Browsers, if installed:
mozilla browser with internal sqlite db (FF, SM, etc.)
links2
Chromium
Vivaldi

Mainstream Apps:
gmplayer (if installed)
geany (with related directories)
mtpaint (with related directories)

DB:
separate sqlitemanager program (if installed)

Personal:
last 10 documents you saved in /root/my-documents

Your Puppy:
last 10 packages you installed with petget

System logs:
/tmp/xerrs.log
/root/.bash-history
/root/.lesshst (history file of the real less from Greenwood Software)
/var/log/Xorg?.log

I hope this clarifies things for those who asked.

~~~~~~~~
Also, if you feel it would be useful to add to this "Recents" list others apps
that have a history file
, please let me know. I'll try to oblige. TIA.
~~~~~~~~

BFN

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Fri 07 Jul 2017, 14:33    Post subject:  

Hello all.

Here is MRUF-lst version 0.9.7.5

This version
-- uses a new horizontal design. It's easier for the eye to follow lines than
to follow columns, IMO.

-- adds a separate sub-menu for the bash scripts in the xbel section. (For
SAFETY, scripts load in geany. You can run them from there is you wish.)

-- you can move the menu on screen from within the menu if you click
on any thin line

-- internally, added extra variables to enable the above.

-- new desktop file and new wrapper script to enable the following feature:

-- the script now starts with the GTK2 theme of your choice -- independent
of your main global GTK2 theme -- when defined in a config file such as
/root/.aewm/ae/aepanel-custom.gtkrc.

The config file that's provided includes some commented-out GTK2 theme
examples. If you don't have them or you don't like them, there are
thousands of GTK2 themes to choose from at:
https://www.gnome-look.org/browse/cat/136/ord/latest

Enjoy.
MRUF-lst-0.9.7.5.pet
Description 
pet

 Download 
Filename  MRUF-lst-0.9.7.5.pet 
Filesize  112.18 KB 
Downloaded  29 Time(s) 
MRUF-0975-EN-from-icon.jpg
 Description   Showing the icon, the new elongated design with own GTK2 theme, and the new scripts section.
 Filesize   62.73 KB
 Viewed   234 Time(s)

MRUF-0975-EN-from-icon.jpg

MRUF-0975-with-global-GTK2-theme.jpg
 Description   Comparison: running MRUF-lst using the global GTK2 theme. You still have the selection of MRUF-menu themes if you wish, at Param.->Dress-up.
 Filesize   66.01 KB
 Viewed   258 Time(s)

MRUF-0975-with-global-GTK2-theme.jpg

MRUF-0975-move-anywhere.jpg
 Description   If you click on any thin line, you can move this menu on your screen relative to the cursor position.
 Filesize   60.84 KB
 Viewed   260 Time(s)

MRUF-0975-move-anywhere.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Sun 09 Jul 2017, 13:12    Post subject:  

Hello all.

I just realized that by default Puppy does not have a way to control
"how many days back" for the recently-used.xbel file.

This is how you do it.

-- Check if you have a file named .gtkrc.mine in /root.
------ if you do, insert this line at the very top of it:
Quote:
gtk-recent-files-max-age = 10
if it's not already there.

------ if file /root/.gtkrc.mine does not exist, open a terminal and
issue the following command:
Code:
echo "gtk-recent-files-max-age = 10" > /root/.gtkrc.mine

~~~~~~~~~~~

The number 10 in the above is the number of "up-to" ("last") days
during which files /events will be recorded or kept in file
/root/.local/share/recently-used.xbel.

With "gtk-recent-files-max-age = 10", on the 11th day, the events and
files that were recorded on the original day 1 are erased, the original
day 2 becomes day 1, and so on.

If you want no "xbel" history, indicate 0 instead of 10. This of
course will disable the "xbel" part of the MRUF script. But the other
sections (bash, mtpaint, etc.) will continue to be monitored. (Please
see add'l note below.)

I do not recommend specifying above 15 (days), because the xbel file
tends to get too large for reasonable speed for the MRUF script.

Any questions about this, please ask.

IHTH

~~~~~~~~~~~~~~
Note for the "entirely paranoid" Wink
------ You can use this MRUF script to erase the histories of bash, less,
mtpaint, geany, etc. Simply click every once and a while on the
"ERASE THIS LIST" entry in the sub-menu for that part.

I say "once and a while" because these lists keep being generated. There
is no safe way to entirely disable them. Please keep in mind that some of
these history lists are needed by the Puppy OS to work properly.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
torm


Joined: 07 Mar 2015
Posts: 128

PostPosted: Thu 13 Jul 2017, 04:13    Post subject:  

how to get:
/root/my-doc...blah-blah.txt
instead of:
/root/my-documents/a_lot_of_folders/somefoldername/file_name_that_cannot_be_any_shorter_blah-blah.txt

so it doesn't go "fullscreen" ?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Thu 13 Jul 2017, 13:39    Post subject:  

torm wrote:
how to get:
/root/my-doc...blah-blah.txt
instead of:
/root/my-documents/a_lot_of_folders/somefoldername/file_name_that_cannot_be_any_shorter_blah-blah.txt

so it doesn't go "fullscreen" ?

Hi torm.

Good to see I'm not the only one interested in a "history" app / menu !
Thanks for your feedback.

I never had the problem that you mention -- I rename my docs to shorter
names as necessary -- , but I'll see what I can do about extremely-long-
file-names.

Since you are complaining about the lack of a certain advanced feature, I
gather that the rest of this history menu is working well for you?

I don't remember who said this, but you can figure out how satisfied
people are with your product from how specialized their complaint is !

I'll still take it into consideration, but I'll take your complaint as a
compliment! Smile

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Fri 14 Jul 2017, 19:35    Post subject:  

Hello torm and all.

Please find attached MRUF-lst-0.9.7.6.

This version:
1) takes torm's comment about long lines into consideration by shortening
some long directory names (lines 452-454). It's not ideal, I realize that,
but it's the best I can do given the way aemenu works.

2) refines the handling of text, image, compressed and squashed files,
essentially to allow the menu to re-appear after the file is viewed or
processed (for those file types only; I haven't found a catch-all
solution; lines 147-157).

3) includes a revisited script to call sqlitemanager (the Mozilla plugin),
as a stand-alone application. Applies to Mozilla-type browsers only;
original script by BarryK, BTW.

Please let me know if the Chrome / Chromium-type browsers can use
sqlitemanager. If so, I'll add them to the list. I guess that's a question
Mike_Walsh could answer! Wink

4) some touch-ups to the common and language variables in
/usr/local/share/MRUF.

Finally, I have to qualify my previous statement about this script taking
only five seconds to load: after having tested it many times, the truth is
that it takes generally five seconds.

If the "recently-used.xbel" file has changed a lot, you may have to wait up
to 25 seconds for the menu to show. If you browsed a lot of new sites, or
edited many text files, things like that, the script will take longer to build
or refresh the menu.

Constructive feedback welcome. Enjoy!
MRUF-lst-0.9.7.6.pet
Description 
pet

 Download 
Filename  MRUF-lst-0.9.7.6.pet 
Filesize  112.48 KB 
Downloaded  25 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Sat 15 Jul 2017, 03:11    Post subject:  

Hello all.

I'm on a roll! Smile

~~~~~~~~~~

Changes, MRUF-lst-0.9.7.7, 2017/07/15

-- Redid the layout of the description panel (plz see attached pic #1)

-- Added the last name of the devs for relevant apps in description panel
(same pic)

-- Condensed the image and text lines into a for loop

-- Added another replaceit command for /root/my-docs to shorten lines

-- Got Puppus_Dogfellow's nice icon to appear in the refresh panel (plz see
attached pic #2)

-- Hopefully made the choice of the file manager clearer (plz see attached
pic #3)

-- Chose another color set; I hope you like it! (same pic as above)

-- Upped the number of personal docs and packages from 10 to 14

-- Decided to show the menu entry for editing the menu on the fly.
Although this is more of a developer's feature (it's a kind of "recursion"),
some users might find it handy on occasion. Please be light-handed with
this; you may mess everything up real good using it. If you do, don't
come crying to papa! Wink You have been warned.*

~~~~~~~~~~

As usual, constructive feedback or ideas for developing this script further
are welcome.

Enjoy!

~~~~~~~~~~
* (Solution: if you do mess up the menu with the editing feature, erase
file /tmp/recents and re-start the script; a new menu will be created.)
MRUF-lst-0.9.7.7-refresh.jpg
 Description   Now showing Puppus_Dogfellow's nice icon in the refresh panel.
 Filesize   38.07 KB
 Viewed   154 Time(s)

MRUF-lst-0.9.7.7-refresh.jpg

MRUF-lst-0.9.7.7-description.jpg
 Description   Credit where credit is due.
 Filesize   136.32 KB
 Viewed   154 Time(s)

MRUF-lst-0.9.7.7-description.jpg

MRUF-lst-0.9.7.7-choice_of_FM.jpg
 Description   Clearer instruction concerning the choice of a file manager.
 Filesize   61.96 KB
 Viewed   159 Time(s)

MRUF-lst-0.9.7.7-choice_of_FM.jpg

MRUF-lst-0.9.7.7.pet
Description  The new script
pet

 Download 
Filename  MRUF-lst-0.9.7.7.pet 
Filesize  114.43 KB 
Downloaded  32 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Sat 15 Jul 2017, 19:38    Post subject:  

Hello again, people.

I've been testing the "recall of URLs" section of the MRUF script, and there
appears to be some problems with wikipedia and duckduckgo addresses.
Sometimes the defaultbrowser connects to the address and sometimes it
doesn't. Tests indicate that it could have to do with the syntax of the
address itself?

Connection to a Puppy forum page is fine, however.

I wiggled the MRUF and defaultbrowser scripts a bit, and they don't appear
to be the source of the problem.

I'm investigating. If you have any insight on this, please let me know. I
heard that some major sites have developed in-built protection now
against scripted connections. Maybe that's it?

TIA.

~~~~~~~~~~~~
On the line length front, torm will be perhaps glad to know that I've
evolved a sub-routine to shorten the URL names appearing in the menu.
It should be less frustrating for users with narrower monitors.

Something like this:
Code:
#!/bin/sh
####
H=hippopotamopotamus
if [ "${#H}" -gt 15 ];then
   V=$H;V="${V:0:5}"
   l="`echo $[${#H} - 5]`"
   W="${H:$l:${#H}}"
   echo "$V...$W"
else
   echo $H
fi
To be continued. (Pic of test attached.)

BFN.
MRUF-lst-0.9.7.8alpha-short-lines.jpg
 Description   This is tentative for now.
 Filesize   89.39 KB
 Viewed   154 Time(s)

MRUF-lst-0.9.7.8alpha-short-lines.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Mon 24 Jul 2017, 18:25    Post subject:  

Hello all.

Please find attached version 0.9.7.8 of the MRUF list script.

Added in this version :

-- If the size of the geany.conf or .mtpaint configuration files
has changed, the script recycles.
This saves the user from manually
recycling the script every time (s)he edits a picture or a plain text.

-- Thorough consideration of torm's remark above about width
of entries:

---- Detection of monitor width: if your monitor has a width of less than
1025 pixels, the sub-menus pile up vertically instead of going horizontal.
---- I generalized a width limitation to:
------ 60 characters for URLs
------ the last two sub-dirs plus file name for other files
(Please see attached illustrations.)

-- I clarified (I hope!) comments here and there in the script. In particular
the one about forced running in English for testing (lines 55-56). Normally
you won't touch line 55, since the script detects the language environment
automatically; but it can be handy.

-- Following BarryK's observation, I put executables aemenu-pango, bcm
and replaceit all under /usr/bin.


-- I refined the call to Vivaldi's history at line 299. It needed an extra
parameter, < --no-sandbox >.

Constructive comments welcome, as always.

Enjoy!

~~~~~~~~

P.S. See post below for 64-bit version.
MRUF-lst-0.9.7.8.pet
Description 
pet

 Download 
Filename  MRUF-lst-0.9.7.8.pet 
Filesize  114.56 KB 
Downloaded  26 Time(s) 
For-narrower-screens.jpg
 Description   With shortened paths in the entries in right-most panel.
 Filesize   87.82 KB
 Viewed   125 Time(s)

For-narrower-screens.jpg

For-wider-screens.jpg
 Description   With same.
 Filesize   70.67 KB
 Viewed   121 Time(s)

For-wider-screens.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Mon 24 Jul 2017, 23:12; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Mon 24 Jul 2017, 23:10    Post subject:  

(Edited July 29 2017.)
~~~~~~~~~~~~~~~~
Hello all.

Good news, MRUF-lst-0.9.7.8 works on a 64-bit Puppy derivative!

At least for Quirky-8,2 "xerus" users. Unfortunately, I forgot to note the
glibc version of the Quirky-8,2 "xerus", so it may not work on your 64-bit
Puppy.

Many thanks to BarryK for compiling and including the necessary 64-bit
execs required to make this script run.

So may I present: MRUF-lst-0.9.7.8 64-bit!

-- The script and execs are separate for the 64-bit version
-- A couple of screen shots

Please test on your 64-bit Pup? TIA.
MRUF-lst-0.9.7.8_no-execs.pet
Description  For 64-bit Pups only. You need to install at least this pet, plus the execs64
pet below if NOT on Quirky-8,2 "xerus".
pet

 Download 
Filename  MRUF-lst-0.9.7.8_no-execs.pet 
Filesize  103.19 KB 
Downloaded  33 Time(s) 
MRUF-execs64-BK.pet
Description  For 64-bit Pups. These execs from Quirky-8.2 "xerus". May not work if glibc
of your 64-bit Pup is less than 2.23 You need to install this pet (except on
Quirky-8.2 "xerus"), plus the no-execs pet above.
pet

 Download 
Filename  MRUF-execs64-BK.pet 
Filesize  20.94 KB 
Downloaded  39 Time(s) 
MRUF-on-Quirky-8.2.jpg
 Description   
 Filesize   88.72 KB
 Viewed   110 Time(s)

MRUF-on-Quirky-8.2.jpg

MRUF-on-Quirky-8.2(1).jpg
 Description   There is not much history to show, since this screen shot was captured
shortly after a full install. But as you can see it works.
 Filesize   83.5 KB
 Viewed   121 Time(s)

MRUF-on-Quirky-8.2(1).jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Sat 29 Jul 2017, 06:51; edited 2 times in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Tue 25 Jul 2017, 00:48    Post subject:  

Hello again all.

I just realized that the MRUF won't display an sqlite3 DB if you don't install
its MIME-type:
http://murga-linux.com/puppy/viewtopic.php?p=961833&sort=lastpost#961833
So please do? TIA.

It will be included in the next version of the MRUF-lst script.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11158
Location: Gatineau (Qc), Canada

PostPosted: Fri 28 Jul 2017, 23:35    Post subject:  

Hello all,

BarryK has chosen to include this MRUF-lst script in his coming
Quirky-8.2.2 "xerus". Please see here:
http://barryk.org/news/?viewDetailed=00622

I am quite honored. Thanks, Mr. Kauler.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [60 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1956s ][ Queries: 14 (0.0131s) ][ GZIP on ]