Author |
Message |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Tue 15 Nov 2011, 02:28 Post subject:
|
|
Good job Seaside! Thank you for creating the .pet! Really cool...
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Tue 15 Nov 2011, 12:00 Post subject:
|
|
Sorry Rattlehead, but i use Xfce4!
in the german forum i have already a post of how make a shortcut with xfce4 but no answer jet!
Rattlehead wrote: | Good job Seaside! Thank you for creating the .pet! Really cool...  |
Hallo seaside,
but the pet only works with jwm?
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 917
|
Posted: Tue 15 Nov 2011, 12:48 Post subject:
|
|
der-schutzhund wrote: | Sorry Rattlehead, but i use Xfce4!
in the german forum i have already a post of how make a shortcut with xfce4 but no answer jet!
Rattlehead wrote: | Good job Seaside! Thank you for creating the .pet! Really cool...  |
Hallo seaside,
but the pet only works with jwm? |
der-schutzhund,
You can still use this pet. After you set up a shortcut key in Xfce4 (assign it to "Alt-m" with the exec command "Grabxlink")
Good luck,
s
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Tue 15 Nov 2011, 14:03 Post subject:
|
|
Hello seaside,
but my problem is that I do not know how to set up a shortcut in xfce4!
one can create shortcuts: Xfce4 Settings Manager -> Keyboard -> Application Shortcuts
I had to "add" just trying to create a new shortcut.
I can enter the command but it is still no abbreviation such as "Shift + F2" because no input field or something similar will appear.
Somewhere it says that it only needs to generate for a new theme but where and how?
seaside wrote: | der-schutzhund wrote: | Sorry Rattlehead, but i use Xfce4!
in the german forum i have already a post of how make a shortcut with xfce4 but no answer jet!
Rattlehead wrote: | Good job Seaside! Thank you for creating the .pet! Really cool...  |
Hallo seaside,
but the pet only works with jwm? |
der-schutzhund,
You can still use this pet. After you set up a shortcut key in Xfce4 (assign it to "Alt-m" with the exec command "Grabxlink")
Good luck,
s |
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Wed 16 Nov 2011, 07:57 Post subject:
|
|
I'm afraid I can't help with that. I know nothing about Xfce4. I'm happily married with Ratpoison (in spite of the the horrible name ).
Maybe creating a new thread about Xfce4 links but in English? I have done it sometimes with the Spanish forum, I don't think it is considered double posting. That way you would multiply the possibility of getting an answer, rather than people diving into this post, apparently on Xmind. It doesn't seem a very complicate issue (assuming that Xfce4 can be customized, which again I don't know).
Hope it helps.
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Wed 16 Nov 2011, 10:08 Post subject:
|
|
Hello Rattlehead and seaside,
I am a good step forward! I can now create the shortcut in Xfce. Now when I mark txt, pdf, html files in Xmind and then enter the shortcut ALT + m, always an empty text file with Geany is started.
This is definitely a start!
--------------------------------
latest message: txt, jpg, pdf to open properly!
Super good!
Shame on me (I had not installed xdotool)
Html files are still a problem.
This does not work because I have an Opera.
When I click in Thunar a *. html page will then start normally in Opera.
-----------------------------------------
it is up to the ending!
When I enter the link with *. html then it works!
If the extension is php but what happens quite often even a text editor opens.
For example, only the address entered with http://www.google.de then it does not run too!
Regards
Wolfgang
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Wed 16 Nov 2011, 15:18 Post subject:
|
|
Wolfgang,
congratulations for your advances. Your post has 3 different parts, my guess is you were logging your advances along the way and then sent the whole text at once, so the only problem yet to solve is the last one, with internet links:
Quote: | If the extension is php but what happens quite often even a text editor opens.
For example, only the address entered with http://www.google.de then it does not run too! |
I think the reason is simple: I don't link internet files in Xmind, so my script does not handle them. The program currently identifies file extensions, but it should add a condition to identify beginnings (to detect http://, www...), and in such case do
Are you bash savy enough to add the condition by yourself? If you haven't figured it out by the weekend, let me know and I will write the code -I don't have the time right now-.
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Thu 17 Nov 2011, 10:47 Post subject:
|
|
Hello my friends
Our community project is completed.
In the script I built a query that checks whether the command line "http" implies. If this is so the opera starts.
Now all sorts of file types open with one touch.
Thank you both again and best regards to Spain!
Wolfgang
Code: | #!/bin/bash
# Rattlehead - mods by seaside and der-schutzhund November 16,2011
# Grabxlink - initially set at Alt-m
# Requires Xmind already open and active, and the required 'bubble' selected
#
# von Rattlehead - erweitert von seaside und der-schutzhund November 16.2011
# Grabxlink - sollte nach usr/bin geschoben werden
# dieses Script öffnet aus Xmind für Linux unter 431-de alle Dateien wie
# txt, img, pdf, html über eine Funktionstaste oder Tastenkombination
# Xmind muss gestartet sein und die gewünschte Datei markiert
# Hinweis: Mit dem jeweiligen JWM oder Xfce etc. muss ein shortcut angelegt werden
# der dann Grabxlink startet
# xdotool muss ebenfalls installiert sein!
#Keypress simulation
#Open the required Xmind dialog
sleep .5
xdotool key ctrl+h
#Select the whole path
sleep .2
xdotool key ctrl+a
#Copy it
sleep .2
xdotool key ctrl+c
sleep .2
#Close the dialog
xdotool key Escape
#Get the clipboard content and put it in the 'listed' variable
listed=`xclip -o -selection clipboard`
#Grab the file extension
trm=`echo "${listed#*.}"`
[[ -z $trm ]] && exit
#test if "http" is in 'listed' then start with Opera
if [[ $listed =~ .*http.* ]]
then
opera $listed &
else
#Open file
Xmind-open "$listed"
fi |
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Fri 18 Nov 2011, 00:46 Post subject:
|
|
Hey Wolfgang,
I'm glad you found the solution. As I am only an occasional programmer, my regular expressions become rusty from one time to another. Besides, there are differences in bash, grep, awk... I guess it's the price of power
I'll implement your changes myself when I have the occasion. It will be great being able to add websites too. Now one can have his whole life in an Xmind if he wants to!
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Sun 20 Nov 2011, 10:18 Post subject:
|
|
Hey Rattlehead,
've Found a bug.
When files are attached as Appendix it can not be opened because it directly into the xmid -. File is saved, and therefore has no directory.
Now I save the attachment first before and then load back to normal.
Can you tell me how I can program xdotool with the arrow keys?
Rattlehead wrote: | Hey Wolfgang,
I'm glad you found the solution. As I am only an occasional programmer, my regular expressions become rusty from one time to another. Besides, there are differences in bash, grep, awk... I guess it's the price of power
I'll implement your changes myself when I have the occasion. It will be great being able to add websites too. Now one can have his whole life in an Xmind if he wants to!  |
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 917
|
Posted: Sun 20 Nov 2011, 17:58 Post subject:
|
|
der-schutzhund wrote: |
Can you tell me how I can program xdotool with the arrow keys?
|
der-schutzhund.
Code: | xdotool key [Up] [Down] [Left] [Right] |
Cheers,
s
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 1040 Location: Blomberg / Germany
|
Posted: Mon 21 Nov 2011, 16:48 Post subject:
|
|
Thanks for the info. It also now works with files from the Annex. However, there are now two scripts "Grabxlink" and "Grabxlink-a". Both call at the end of the script "Xmind-open". Soon I will try a complete pet and a sfs with all the program files and create scripts.
Do you know how to xdotool in letters like "ä" generated?
Regards
Wolfgang
seaside wrote: | der-schutzhund wrote: |
Can you tell me how I can program xdotool with the arrow keys?
|
der-schutzhund.
Code: | xdotool key [Up] [Down] [Left] [Right] |
Cheers,
s |
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Wed 30 Nov 2011, 09:53 Post subject:
|
|
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Wed 30 Nov 2011, 09:54 Post subject:
|
|
|
Back to top
|
|
 |
Rattlehead

Joined: 11 Sep 2008 Posts: 367
|
Posted: Wed 30 Nov 2011, 09:57 Post subject:
|
|
|
Back to top
|
|
 |
|