Posted: Tue 15 Nov 2011, 06:28
Good job Seaside! Thank you for creating the .pet! Really cool...
READ-ONLY Archive
https://oldforum.puppylinux.com/
Hallo seaside,Rattlehead wrote:Good job Seaside! Thank you for creating the .pet! Really cool...
der-schutzhund,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!
Hallo seaside,Rattlehead wrote:Good job Seaside! Thank you for creating the .pet! Really cool...
but the pet only works with jwm?
seaside wrote:der-schutzhund,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!
Hallo seaside,Rattlehead wrote:Good job Seaside! Thank you for creating the .pet! Really cool...
but the pet only works with jwm?
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
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 doIf 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!
Code: Select all
opera $listed &
Code: Select all
#!/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
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!
der-schutzhund.der-schutzhund wrote:
Can you tell me how I can program xdotool with the arrow keys?
Code: Select all
xdotool key [Up] [Down] [Left] [Right]
seaside wrote:der-schutzhund.der-schutzhund wrote:
Can you tell me how I can program xdotool with the arrow keys?
Cheers,Code: Select all
xdotool key [Up] [Down] [Left] [Right]
s
Yeah some of the character mapping names can be confusing. In general, 'xdotool key' characters valid are any 'key symbol' or XKeysym.
The 'keysymdef.h' file in X11 will help you. Any 'XK_'-prefixed name is valid; simply drop the 'XK_' part.
http://cgit.freedesktop.org/xorg/proto/ ... eysymdef.h
For example, to have xdotool send 'a' with umlaut/diaeresis, do:
xdotool key adiaeresis
The capital letter form is 'Adiaeresis' (look in the above keysymdef.h for XK_Adiaeresis)
Yeah some of the character mapping names can be confusing. In general, 'xdotool key' characters valid are any 'key symbol' or XKeysym.
The 'keysymdef.h' file in X11 will help you. Any 'XK_'-prefixed name is valid; simply drop the 'XK_' part.
http://cgit.freedesktop.org/xorg/proto/ ... eysymdef.h
For example, to have xdotool send 'a' with umlaut/diaeresis, do:
xdotool key adiaeresis
The capital letter form is 'Adiaeresis' (look in the above keysymdef.h for XK_Adiaeresis)
Yeah some of the character mapping names can be confusing. In general, 'xdotool key' characters valid are any 'key symbol' or XKeysym.
The 'keysymdef.h' file in X11 will help you. Any 'XK_'-prefixed name is valid; simply drop the 'XK_' part.
http://cgit.freedesktop.org/xorg/proto/ ... eysymdef.h
For example, to have xdotool send 'a' with umlaut/diaeresis, do:
xdotool key adiaeresis
The capital letter form is 'Adiaeresis' (look in the above keysymdef.h for XK_Adiaeresis)
Yeah some of the character mapping names can be confusing. In general, 'xdotool key' characters valid are any 'key symbol' or XKeysym.
The 'keysymdef.h' file in X11 will help you. Any 'XK_'-prefixed name is valid; simply drop the 'XK_' part.
http://cgit.freedesktop.org/xorg/proto/ ... eysymdef.h
For example, to have xdotool send 'a' with umlaut/diaeresis, do:
xdotool key adiaeresis
The capital letter form is 'Adiaeresis' (look in the above keysymdef.h for XK_Adiaeresis)
Yeah some of the character mapping names can be confusing. In general, 'xdotool key' characters valid are any 'key symbol' or XKeysym.
The 'keysymdef.h' file in X11 will help you. Any 'XK_'-prefixed name is valid; simply drop the 'XK_' part.
http://cgit.freedesktop.org/xorg/proto/ ... eysymdef.h
For example, to have xdotool send 'a' with umlaut/diaeresis, do:
xdotool key adiaeresis
The capital letter form is 'Adiaeresis' (look in the above keysymdef.h for XK_Adiaeresis)