[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] Recently used files pipemenu
From:       ohnonot-github () posteo ! de (D ! T ! )
Date:       2021-03-06 9:45:45
Message-ID: 69bfb2c1b2fb387e6980d6703d1506db18b47784.camel () posteo ! de
[Download RAW message or body]

I almost completely rewrote this.
If you care about icons in your openbox menu you should probably try it
;)

https://framagit.org/ohnonot/openbox-pipemenus/
https://notabug.org/ohnonot/openbox-pipemenus

The bash script

- sorts the list by access time and updates the entry in recently-
used.xbel when you open a file with it, i.e. next time you will see
that file at the top of the list.

- filters out files that do not exist (anymore) or are unreadable for
other reasons.

- offers to open the file in question with all the applications listed
in recently-used.xbel after checking they are present in PATH, and
additionally with a mime-opener like 'xdg-open'.

- assigns icons from the current icon theme and its Inherits, as close
as possible to how e.g. Thunar does it.

- caches icon paths and icons so that subsequent runs are much faster.

- uses an absolute minimum of external commands & dependencies.




On Sun, 2021-02-28 at 17:07 +0200, D.T. wrote:
> I moved it to a different repository:
> https://framagit.org/ohnonot/openbox-pipemenus/
> https://notabug.org/ohnonot/openbox-pipemenus
> 
> Also working on a better version; some trouble with Gtk(Filechooser)
> assigning silly mimetypes which then get stuck in recently-used.xbel.
> More info in this thread:
> https://forums.bunsenlabs.org/viewtopic.php?pid=111485#p111485
> 
> On Sat, 2021-02-20 at 20:59 +0200, D.T. wrote:
> > Hello,
> > I played around with this for a day or two.
> > Of course there's a few scripts already that read
> > ~/.local/share/recently-used.xbel, but this one is particularly
> > interesting for those who care about proper mimetype icons in their
> > openbox menu.
> > 
> > Get it here:
> > https://framagit.org/ohnonot/stuff/-/blob/master/recent
> > or here:
> > https://notabug.org/ohnonot/stuff/src/master/recent
> > 
> > Further expanation in the code comments.
> > 
> > o.
> > 
> > 
> > _______________________________________________
> > openbox mailing list
> > openbox at icculus.org
> > http://icculus.org/mailman/listinfo/openbox
> 
> 
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic