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 Mon 24 Nov 2014, 04:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
SpeedDials - a comprehensive bookmark gallery
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
MochiMoppel


Joined: 26 Jan 2011
Posts: 471
Location: Japan

PostPosted: Thu 11 Sep 2014, 01:55    Post subject:  SpeedDials - a comprehensive bookmark gallery
Subject description: combines bookmarks from 5 different sources in one list
 

SpeedDials combines bookmarks from 5 different sources in one list.
Originally developed as a simple tool to visualize ROX group selections and introduced in the HOWTO forum, the script gradually grew into a more advanced application and may now be better suited for the software forum.

Features:
- Supports
. * ROX group selections ("speed dials")
. * ROX bookmarks
. * Gtk bookmarks
. * Recently Used files
. * Custom bookmarks & commands
- Can be opened/closed with same desktop/keyboard shortcut.
- Remembers position, dimension and source selection
- Portable: Creates no config or temporary files

Installation:
Just copy the file anywhere and use your favourite tool (keyboard shortcut, desktop link, tray icon etc.)to open it.

Custom bookmarks & commands:
Creating a Custom bookmarks & commands file allows to
- bookmark files, not just directories
- bookmark multiple files/directories, each opened in separate ROX windows
- "bookmark" and run bash commands

Step 1)
Right-click CM button. Leafpad will open with a (not yet created) file custom_bm.txt.
Input bookmarks with format <icon-name>|<ID>|bookmark
<icon-name> and <ID> are optional, the 2 vertical bars are mandatory. The <ID> determines the position in the (alphabetically) ordered ID column. If no ID is given, bookmarks will be placed above ROX speed dials.
All bookmarks must start with "/". Multiple files or directories must be separated by at least 1 space. No quotation marks allowed, even for files containing spaces.
Lines not starting with "/" are treated as commands. Multiple commands are allowed, but must be separated by ";".

Examples (remove trailing descriptions before use):
Code:
gtk-edit||/root/my-documents                                    <= 1 directory
gtk-edit||/root /usr /tmp                                       <= 3 directories
gtk-edit||/root/.jwm/jwmrc-personal /root/.jwmrc-tray           <= 2 files
gtk-edit||geany /root/.jwm/jwmrc-personal /root/.jwmrc-tray     <= Open 2 files in Geany

Step 2)
The default path is /root/custom_bm.txt . To change the path open the script with a text editor, find the line that starts with export PATH_CM= and edit the path.

Dependencies: gtkdialog4

Notes:
- SpeedDials can NOT display unicode characters contained in ROX bookmarks and ROX speed dials (ROX encodes them as HTML entities). No problems though with UTF-8 encoding used in GTK bookmarks and Recently Used files.
- Rightclicking on GT and CM buttons allows to edit the bookmarks.
- Rightclicking on any item opens a gxmessage with the (copiable) item content. Suggestions for a better use of the right mouse button welcome Wink
speeddials.zip
Description 
zip

 Download 
Filename  speeddials.zip 
Filesize  2.92 KB 
Downloaded  53 Time(s) 
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1157
Location: England

PostPosted: Fri 12 Sep 2014, 01:48    Post subject:  

Hi MochiMoppel,

It's superb. Especially the button/display choices.

Do you think it might be worth adding an automatic "close after use" option box to tick/untick?

Alternatively, perhaps right click to action and close - though I like the current right click with the copy opportunity.

My regards and thanks
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 471
Location: Japan

PostPosted: Sat 13 Sep 2014, 00:00    Post subject:  

Jasper wrote:
Do you think it might be worth adding an automatic "close after use" option box to tick/untick?
I had this in one of the first versions, then I figured that nobody would use it.
Quote:
Alternatively, perhaps right click to action and close - though I like the current right click with the copy opportunity.
Well, if you have a mouse with a middle button you can have your pizza with everything:

Replace line 116
Code:
<action signal="button-release-event">[ $PTR_BTN -eq 1 ] && funcProcessDir "$vDIR"|| xmessage -center "$vDIR"</action>

with following 3 lines:
Code:
<action signal="button-release-event">[[ $PTR_BTN =~ 1|3 ]] && funcProcessDir   "$vDIR"</action>
<action signal="button-release-event">[  $PTR_BTN -eq 2   ] && xmessage -center "$vDIR"</action>
<action signal="button-release-event" condition="command_is_true([ $PTR_BTN -eq 3 ] && echo true )">exit:0</action>

If everything goes well your right mouse button will open the bookmark & close SpeedDials, your middle button will trigger the xmessage with the bookmark path.
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1157
Location: England

PostPosted: Sat 13 Sep 2014, 05:16    Post subject:  

Hi MochiMoppel,

Thank you for your star amendment. For me, a middle click (simultaneous left and right click) works as you expect.

However, my right mouse button now closes SpeedDials, but without first opening the bookmark (also, the left mouse button no longer opens the bookmark).

My regards

PS I'll try your new "JWM WinSwitcher" later today and report in that thread.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 471
Location: Japan

PostPosted: Sat 13 Sep 2014, 08:55    Post subject:  

Jasper wrote:
However, my right mouse button now closes SpeedDials, but without first opening the bookmark (also, the left mouse button no longer opens the bookmark).
The problem is the very old bash version 3.0 used by your Precise 5.6. It should work if you add 2 quotation marks ("1|3" ). The requirement for the quotation marks was dropped with version 3.2, but now it's the other extreme: No quotation marks allowed. So here is a solution that should make everybody happy (except me Crying or Very sad ):
Code:
<action signal="button-release-event">[ $PTR_BTN -eq 1 ] && funcProcessDir   "$vDIR"</action>
<action signal="button-release-event">[ $PTR_BTN -eq 2 ] && xmessage -center "$vDIR"</action>
<action signal="button-release-event">[ $PTR_BTN -eq 3 ] && funcProcessDir   "$vDIR"</action>
<action signal="button-release-event" condition="command_is_true([ $PTR_BTN -eq 3 ] && echo true )">exit:0</action>

Let me know if it works.
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1157
Location: England

PostPosted: Sat 13 Sep 2014, 09:17    Post subject:  

Now it works with Precise 5.6.

@ MochiMoppel

My regards and special thanks
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 655
Location: nyc

PostPosted: Mon 15 Sep 2014, 11:16    Post subject:  

MochiMoppel wrote:

Well, if you have a mouse with a middle button you can have your pizza with everything:



i've noticed you've brought up the lack of a middle mouse button before. have you ever considered mapping it to the keyboard with xdotool click 2? it's useless when mapped to the menu because the pointer automatically moves to it, but it works pretty well on the keyboard. left and right are click 1 and click 3, but you'd need to sacrifice more keys if you want to be able to keep the virtual buttons depressed.

anyway, you may not have a use for my advice, but i have a use for your scripts, so again, thank you for this, MochiMoppel.


edit: Mochi, it doesn't remember size or position for me on either precise 5.6.1 or 5.7.1 (all i've tested so far.)

edit2: my mistake--i didn't realize it was no longer automatic and that you have to click the save icon.

Last edited by Puppus Dogfellow on Mon 15 Sep 2014, 13:14; edited 1 time in total
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1157
Location: England

PostPosted: Mon 15 Sep 2014, 12:08    Post subject:  

Hi Puppus Dogfellow,

I have no idea how to fix anything - except as directed by MochiMoppel.

If you type "bash --version" in your Precise 5.61 and 5.71 terminals - what are the respective outputs?

Also, are your chosen buttons retained in either 5.6.1 or 5.7.1 even though your window sizes and positions are not?

I don't have a middle mouse button, but a simultaneous left and right click works.

This is a five star+ app and it seems, to me, as wholly useful as it is ingenius.

My regards
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 655
Location: nyc

PostPosted: Mon 15 Sep 2014, 13:10    Post subject:  

Jasper wrote:
Hi Puppus Dogfellow,

I have no idea how to fix anything - except as directed by MochiMoppel.

If you type "bash --version" in your Precise 5.61 and 5.71 terminals - what are the respective outputs?

Also, are your chosen buttons retained in either 5.6.1 or 5.7.1 even though your window sizes and positions are not?

I don't have a middle mouse button, but a simultaneous left and right click works.

This is a five star+ app and it seems, to me, as wholly useful as it is ingenius.

My regards


Hi Jasper, thanks for the response.


i know it's an old bash on my 5.5 and 5.6, not sure about the 5.7.1 i'm away from at the moment. i have an earlier version of the script that does remember the positions with the old bash, so i'm not sure that's the issue.

and now that i've checked it on 5.5, i'm a bit embarrassed. i took for granted some things would carry over, specifically the position, size and button configuration being remembered automatically. i didn't click on that save icon--didn't even bother to find out what it was for because the previous, basically perfect version didn't have it and i didn't feel like i was missing anything. i guess i figured it was a hot link to the custom bookmarks file you'd want to edit from time to time.

it works perfectly. thanks and sorry for my oversight.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0930s ][ Queries: 12 (0.0159s) ][ GZIP on ]